Update Files
This commit is contained in:
		
							
								
								
									
										34
									
								
								Kinc/KongShaders/g1.kong
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								Kinc/KongShaders/g1.kong
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,34 @@ | ||||
| struct kinc_g1_vertex_in { | ||||
| 	pos: float3; | ||||
| 	tex: float2; | ||||
| } | ||||
|  | ||||
| struct kinc_g1_vertex_out { | ||||
| 	pos: float4; | ||||
| 	tex: float2; | ||||
| } | ||||
|  | ||||
| fun kinc_g1_vertex(input: kinc_g1_vertex_in): kinc_g1_vertex_out { | ||||
| 	var output: kinc_g1_vertex_out; | ||||
|  | ||||
| 	output.pos.xy = input.pos.xy; | ||||
| 	output.pos.z = 0.5; | ||||
| 	output.pos.w = 1.0; | ||||
|  | ||||
| 	output.tex = input.tex; | ||||
|  | ||||
| 	return output; | ||||
| } | ||||
|  | ||||
| const kinc_g1_texture: tex2d; | ||||
| const kinc_g1_sampler: sampler; | ||||
|  | ||||
| fun kinc_g1_fragment(input: kinc_g1_vertex_out): float4 { | ||||
| 	return sample(kinc_g1_texture, kinc_g1_sampler, input.tex); | ||||
| } | ||||
|  | ||||
| #[pipe] | ||||
| struct kinc_g1_pipeline { | ||||
| 	vertex = kinc_g1_vertex; | ||||
| 	fragment = kinc_g1_fragment; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user