everything works when you palce the light in the right spot
This commit is contained in:
1 parent
83feee2706
commit
60457309ae
5 files changed
+48
-28
No files matched your search
@@ -29,7 +29,8 @@ void main()
|
||||
|
||||
vec3 ambient = ambientStrength * lightColor;
|
||||
|
||||
fragColor = vec4((ambient + diffuse) * objectColor, 1.0);
|
||||
vec3 result = (ambient + diffuse) * objectColor;
|
||||
fragColor = vec4(result, 1.0);
|
||||
|
||||
// vec3 lightDir = LightPos - FragPos;
|
||||
// float distance = length(lightDir);
|
||||
|
||||
Reference in new issue
Block a user