oglc/shader/include/func.glsl

5 lines
84 B
Plaintext
Raw Normal View History

2021-08-10 02:11:22 +02:00
float sdot(vec3 x, vec3 y, float f = 1.0)
{
return clamp(dot(x,y)*f,0.0,1.0);
}