Skip to content

Commit 2f1c8a7

Browse files
authored
Merge pull request #9050 from skyace65/SkyRadians
Change degress to radians for sky shader built in
2 parents 86c20b2 + a427f64 commit 2f1c8a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tutorials/shaders/shader_reference/sky_shader.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ There are 4 ``LIGHTX`` lights, accessed as ``LIGHT0``, ``LIGHT1``, ``LIGHT2``, a
174174
+---------------------------------+--------------------------------------------------------------------------------------------------------------------------+
175175
| in vec3 **LIGHTX_COLOR** | Color of ``LIGHTX``. |
176176
+---------------------------------+--------------------------------------------------------------------------------------------------------------------------+
177-
| in float **LIGHTX_SIZE** | Angular diameter of ``LIGHTX`` in the sky. Expressed in degrees. For reference, the sun from earth is about 0.5 degrees. |
177+
| in float **LIGHTX_SIZE** | Angular diameter of ``LIGHTX`` in the sky. Expressed in radians. For reference, the sun from earth is about .0087 radians|
178+
| | (0.5 degrees). |
178179
+---------------------------------+--------------------------------------------------------------------------------------------------------------------------+
179180
| in float **PI** | A ``PI`` constant (``3.141592``). |
180181
| | A ratio of a circle's circumference to its diameter and amount of radians in half turn. |

0 commit comments

Comments
 (0)