Вершинный шейдер теней направленного источника
This commit is contained in:
		
							parent
							
								
									b76d2c0cf2
								
							
						
					
					
						commit
						d5cf277995
					
				
							
								
								
									
										17
									
								
								shaders/sun_shadow.vert
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								shaders/sun_shadow.vert
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,17 @@ | ||||
| #version 420 core | ||||
| 
 | ||||
| layout (location = 0) in vec3 pos; | ||||
| 
 | ||||
| uniform mat4 model; | ||||
| 
 | ||||
| layout(std140, binding = 3) uniform Sun | ||||
| { | ||||
|     vec3 direction; | ||||
|     vec3 color; | ||||
|     mat4 vp; | ||||
| } sun; | ||||
| 
 | ||||
| void main() | ||||
| { | ||||
|     gl_Position = sun.vp * model * vec4(pos, 1.0); | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user