From a427f644ed3c05987b864efd42b62dc6ef6e27bb Mon Sep 17 00:00:00 2001 From: skyace65 Date: Sun, 3 Mar 2024 20:16:56 -0500 Subject: [PATCH] Change degress to radians for sky shader built in --- tutorials/shaders/shader_reference/sky_shader.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/shaders/shader_reference/sky_shader.rst b/tutorials/shaders/shader_reference/sky_shader.rst index 54bace647..00d114c50 100644 --- a/tutorials/shaders/shader_reference/sky_shader.rst +++ b/tutorials/shaders/shader_reference/sky_shader.rst @@ -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. |