Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LIGHT_IS_DIRECTIONAL built-in for spatial shaders #7194

Merged
merged 1 commit into from
Apr 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tutorials/shaders/shader_reference/spatial_shader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,8 @@ If you want the lights to add together, add the light contribution to ``DIFFUSE_
+-----------------------------------+----------------------------------------------------+
| in vec3 **LIGHT_COLOR** | Color of light multiplied by energy. |
+-----------------------------------+----------------------------------------------------+
| in vec3 **LIGHT_IS_DIRECTIONAL** | ``true`` if this pass is a ``DirectionalLight3D``. |
+-----------------------------------+----------------------------------------------------+
| in float **ATTENUATION** | Attenuation based on distance or shadow. |
+-----------------------------------+----------------------------------------------------+
| in vec3 **ALBEDO** | Base albedo. |
Expand Down