diff options
| author | Ray <[email protected]> | 2021-03-17 14:19:18 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-03-17 14:19:18 +0100 |
| commit | eaf815c1c0e753dfd04ca030605f5f6da9d6542f (patch) | |
| tree | b29892e1d4d2800117813e7ccd768445802d43d3 /examples/web/shaders/shaders_rlgl_mesh_instanced.data | |
| parent | e3dccefd625db995965e1b3b04fc02ebcb788cf4 (diff) | |
| download | raylib.com-eaf815c1c0e753dfd04ca030605f5f6da9d6542f.tar.gz raylib.com-eaf815c1c0e753dfd04ca030605f5f6da9d6542f.zip | |
Update example shaders instanced
Diffstat (limited to 'examples/web/shaders/shaders_rlgl_mesh_instanced.data')
| -rw-r--r-- | examples/web/shaders/shaders_rlgl_mesh_instanced.data | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/web/shaders/shaders_rlgl_mesh_instanced.data b/examples/web/shaders/shaders_rlgl_mesh_instanced.data index ccb2e54..eb8d9fd 100644 --- a/examples/web/shaders/shaders_rlgl_mesh_instanced.data +++ b/examples/web/shaders/shaders_rlgl_mesh_instanced.data @@ -116,12 +116,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); } |
