vec3 (@dotproduct) header
vec3 (@dotproduct) profile picture
Earth
Joined September 2021
I think this is very suitable as my first post here. vec3 lightDirection = normalize(lightPosition - FragmentPosition); float diffuse = max(dot(norm, lightDirection), 0.0);
1
23