mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-25 08:56:37 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			295 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			295 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
| #version 120
 | |
| 
 | |
| #include "lib/core/vertex.h.glsl"
 | |
| 
 | |
| uniform mat4 projectionMatrix;
 | |
| 
 | |
| vec4 modelToClip(vec4 pos)
 | |
| {
 | |
|     return projectionMatrix * modelToView(pos);
 | |
| }
 | |
| 
 | |
| vec4 modelToView(vec4 pos)
 | |
| {
 | |
|     return gl_ModelViewMatrix * pos;
 | |
| }
 | |
| 
 | |
| vec4 viewToClip(vec4 pos)
 | |
| {
 | |
|     return projectionMatrix * pos;
 | |
| }
 |