I play with pixel lighting shaders and I don’t know anything: what is a half light source vector?
vec3 halfVector = normalize(gl_LightSource[1].halfVector.xyz);
I would like you to be able to explain this in mathematical lines, I understand math better than words :)
math opengl glsl
kravemir
source share