We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e06359 commit 7246b2fCopy full SHA for 7246b2f
1 file changed
lib/src/shader/basic_shader.dart
@@ -41,6 +41,7 @@ ShaderObject createLightShader() {
41
void main(void) {
42
gl_Position = uPMatrix * uMVMatrix * vec4(aVertexPosition, 1.0);
43
vNormal = (uMVMatrix * vec4(aNormal, 0.0)).xyz;
44
+ pointLightLocation = (uMVMatrix * vec4(pointLightLocation, 0.0)).xyz;
45
46
vec3 lightDir = normalize(pointLightLocation - aVertexPosition.xyz);
47
0 commit comments