mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-03 02:56:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			464 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			464 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
#include "core.h"
 | 
						|
 | 
						|
#ifdef SH_VERTEX_SHADER
 | 
						|
 | 
						|
    SH_BEGIN_PROGRAM
 | 
						|
        shUniform(float4x4, wvp) @shAutoConstant(wvp, worldviewproj_matrix)
 | 
						|
 | 
						|
    SH_START_PROGRAM
 | 
						|
    {
 | 
						|
	    shOutputPosition = shMatrixMult(wvp, shInputPosition);
 | 
						|
    }
 | 
						|
 | 
						|
#else
 | 
						|
 | 
						|
    SH_BEGIN_PROGRAM
 | 
						|
        shUniform(float4, colour)       @shAutoConstant(colour, custom, 1)
 | 
						|
 | 
						|
    SH_START_PROGRAM
 | 
						|
    {
 | 
						|
        shOutputColour(0) = colour;
 | 
						|
        //shOutputColour(0) = float4(1,0,0,1);
 | 
						|
    }
 | 
						|
 | 
						|
#endif
 |