mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 02:26:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			259 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			259 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #include "core.h"
 | |
| #include "watersim_common.h"
 | |
| 
 | |
|     SH_BEGIN_PROGRAM
 | |
|         shInput(float2, UV)
 | |
|         shSampler2D(alphaMap)
 | |
| 
 | |
|     SH_START_PROGRAM
 | |
|     {
 | |
| 		shOutputColour(0) = EncodeHeightmap(1.0);
 | |
| 		shOutputColour(0).a = shSample (alphaMap, UV.xy).a;
 | |
|     }
 |