Skip to content

Commit

Permalink
Merge pull request #9050 from skyace65/SkyRadians
Browse files Browse the repository at this point in the history
Change degress to radians for sky shader built in
  • Loading branch information
mhilbrunner committed Mar 4, 2024
2 parents 86c20b2 + a427f64 commit 2f1c8a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tutorials/shaders/shader_reference/sky_shader.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ There are 4 ``LIGHTX`` lights, accessed as ``LIGHT0``, ``LIGHT1``, ``LIGHT2``, a
+---------------------------------+--------------------------------------------------------------------------------------------------------------------------+
| in vec3 **LIGHTX_COLOR** | Color of ``LIGHTX``. |
+---------------------------------+--------------------------------------------------------------------------------------------------------------------------+
| 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. |
| in float **LIGHTX_SIZE** | Angular diameter of ``LIGHTX`` in the sky. Expressed in radians. For reference, the sun from earth is about .0087 radians|
| | (0.5 degrees). |
+---------------------------------+--------------------------------------------------------------------------------------------------------------------------+
| in float **PI** | A ``PI`` constant (``3.141592``). |
| | A ratio of a circle's circumference to its diameter and amount of radians in half turn. |
Expand Down

0 comments on commit 2f1c8a7

Please sign in to comment.