diff options
author | clayjohn <claynjohn@gmail.com> | 2022-09-28 11:45:08 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2022-09-28 11:46:58 -0700 |
commit | 1a0890122f0b5985d9fb15eac07fb9cc27aceb45 (patch) | |
tree | 3e22c98803f3b262a77d28ab887da867bf29f762 /drivers/gles3/storage | |
parent | 14e1f36e614686f3fea0c74fac3624d1027dd5cc (diff) |
Clean up canvas light shader API.
Expose LIGHT_ENERGY and LIGHT_IS_DIRECTIONAL.
Add LIGHT_DIRECTION
Diffstat (limited to 'drivers/gles3/storage')
-rw-r--r-- | drivers/gles3/storage/material_storage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gles3/storage/material_storage.cpp b/drivers/gles3/storage/material_storage.cpp index 687e98ba58..bc734ef148 100644 --- a/drivers/gles3/storage/material_storage.cpp +++ b/drivers/gles3/storage/material_storage.cpp @@ -1406,6 +1406,8 @@ MaterialStorage::MaterialStorage() { actions.renames["VERTEX_ID"] = "gl_VertexIndex"; actions.renames["LIGHT_POSITION"] = "light_position"; + actions.renames["LIGHT_DIRECTION"] = "light_direction"; + actions.renames["LIGHT_IS_DIRECTIONAL"] = "is_directional"; actions.renames["LIGHT_COLOR"] = "light_color"; actions.renames["LIGHT_ENERGY"] = "light_energy"; actions.renames["LIGHT"] = "light"; |