5 lines
		
	
	
		
			84 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
			
		
		
	
	
			5 lines
		
	
	
		
			84 B
		
	
	
	
		
			GLSL
		
	
	
	
	
	
| float sdot(vec3 x, vec3 y, float f = 1.0)
 | |
| {
 | |
|     return clamp(dot(x,y)*f,0.0,1.0);
 | |
| }
 |