oglc/shader/include/func.glsl
2021-08-10 01:11:22 +01:00

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);
}