summaryrefslogtreecommitdiffhomepage
path: root/examples/web/shaders/resources
diff options
context:
space:
mode:
Diffstat (limited to 'examples/web/shaders/resources')
-rw-r--r--examples/web/shaders/resources/shaders/glsl100/lighting.fs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/web/shaders/resources/shaders/glsl100/lighting.fs b/examples/web/shaders/resources/shaders/glsl100/lighting.fs
index 5e4ff64..5fddcca 100644
--- a/examples/web/shaders/resources/shaders/glsl100/lighting.fs
+++ b/examples/web/shaders/resources/shaders/glsl100/lighting.fs
@@ -54,12 +54,12 @@ void main()
{
vec3 light = vec3(0.0);
- if (lights[i].type == LIGHT_DIRECTIONAL)
+ if (lights[i].type == LIGHT_DIRECTIONAL)
{
light = -normalize(lights[i].target - lights[i].position);
}
- if (lights[i].type == LIGHT_POINT)
+ if (lights[i].type == LIGHT_POINT)
{
light = normalize(lights[i].position - fragPosition);
}