From 1a0890122f0b5985d9fb15eac07fb9cc27aceb45 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Wed, 28 Sep 2022 11:45:08 -0700 Subject: Clean up canvas light shader API. Expose LIGHT_ENERGY and LIGHT_IS_DIRECTIONAL. Add LIGHT_DIRECTION --- drivers/gles3/storage/material_storage.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers') 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"; -- cgit v1.2.3