diff options
author | David Thompson <dthompson2@worcester.edu> | 2021-09-27 17:00:40 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2021-09-28 08:02:39 -0400 |
commit | 23bf499afdb6c241a3c6d6f972710bfe4fc56594 (patch) | |
tree | af241912bd152ab30ba2f5669ad27a35bfedaf7f /data/shaders | |
parent | 669624a8043710a2ed563d1324eb079cf5f05db6 (diff) |
graphics: Enable nvidia cube map extension in shaders that use samplerCube.
Diffstat (limited to 'data/shaders')
-rw-r--r-- | data/shaders/pbr-frag.glsl | 1 | ||||
-rw-r--r-- | data/shaders/phong-frag.glsl | 1 | ||||
-rw-r--r-- | data/shaders/skybox-frag.glsl | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/data/shaders/pbr-frag.glsl b/data/shaders/pbr-frag.glsl index 95986a4..a211096 100644 --- a/data/shaders/pbr-frag.glsl +++ b/data/shaders/pbr-frag.glsl @@ -1,4 +1,5 @@ // -*- mode: c -*- +#extension GL_NV_shadow_samplers_cube : enable struct Material { vec3 baseColorFactor; diff --git a/data/shaders/phong-frag.glsl b/data/shaders/phong-frag.glsl index 979869e..c1a19c1 100644 --- a/data/shaders/phong-frag.glsl +++ b/data/shaders/phong-frag.glsl @@ -1,4 +1,5 @@ // -*- mode: c -*- +#extension GL_NV_shadow_samplers_cube : enable struct Material { vec3 ambient; diff --git a/data/shaders/skybox-frag.glsl b/data/shaders/skybox-frag.glsl index b388828..5556093 100644 --- a/data/shaders/skybox-frag.glsl +++ b/data/shaders/skybox-frag.glsl @@ -1,4 +1,5 @@ // -*- mode: c -*- +#extension GL_NV_shadow_samplers_cube : enable #ifdef GLSL120 varying vec3 fragDir; |