mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 08:56:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
	
		
			176 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
	
		
			176 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
#ifndef LIB_UTIL_QUICKSTEP
 | 
						|
#define LIB_UTIL_QUICKSTEP
 | 
						|
 | 
						|
float quickstep(float x)
 | 
						|
{
 | 
						|
    x = clamp(x, 0.0, 1.0);
 | 
						|
    x = 1.0 - x * x;
 | 
						|
    x = 1.0 - x * x;
 | 
						|
    return x;
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |