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