Initial?? Commit
This commit is contained in:
		
						commit
						82adc16b97
					
				
					 16 changed files with 2485 additions and 0 deletions
				
			
		
							
								
								
									
										12
									
								
								assets/shaders/basic/frag.glsl
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								assets/shaders/basic/frag.glsl
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| #version 330 core | ||||
| precision lowp float; | ||||
| 
 | ||||
| in vec2 v_tex_coords; | ||||
| 
 | ||||
| uniform sampler2D texture; | ||||
| 
 | ||||
| out vec4 f_color; | ||||
| 
 | ||||
| void main() { | ||||
|     f_color = vec4(texture2D(texture, v_tex_coords).rgb, 1.0); | ||||
| } | ||||
							
								
								
									
										13
									
								
								assets/shaders/basic/vert.glsl
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								assets/shaders/basic/vert.glsl
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| #version 330 core | ||||
| 
 | ||||
| uniform mat3 matrix; | ||||
| 
 | ||||
| in vec2 position; | ||||
| in vec2 tex_coords; | ||||
| 
 | ||||
| out lowp vec2 v_tex_coords; | ||||
| 
 | ||||
| void main() { | ||||
|     gl_Position = vec4(matrix * vec3(position, 1.0), 1.0); | ||||
|     v_tex_coords = tex_coords; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue