diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-01-20 00:10:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 00:10:21 +0100 |
commit | 8a6d4dd5ed770f4dc464bbc6af912b96c63bbc2c (patch) | |
tree | 357c7089c986be1f7d9a97e275424ffc326c6a8d /scene/3d | |
parent | f768d8651687cd80da85043c4446b9e0a50f39ef (diff) | |
parent | 099dee35f47db3e293cb8e60287ffe6a44f3d5d4 (diff) |
Merge pull request #45023 from reduz/optimize-shader-vgpr1
Shader optimizations to reduce VGPR usage and increase occupancy
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/light_3d.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/3d/light_3d.cpp b/scene/3d/light_3d.cpp index acae9965e5..b998a1a400 100644 --- a/scene/3d/light_3d.cpp +++ b/scene/3d/light_3d.cpp @@ -212,6 +212,10 @@ void Light3D::_validate_property(PropertyInfo &property) const { property.usage = 0; } + if (get_light_type() == RS::LIGHT_DIRECTIONAL && property.name == "light_specular") { + property.usage = 0; + } + if (get_light_type() == RS::LIGHT_DIRECTIONAL && property.name == "light_projector") { property.usage = 0; } |