File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tutorials/shaders/shader_reference Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ accessible outside of the shader.
383383
384384 shader_type spatial;
385385
386- const float PI = 3.14159265358979323846 ;
386+ const float GOLDEN_RATIO = 1.618033988749894 ;
387387
388388 Constants of the ``float `` type must be initialized using ``. `` notation after the
389389decimal part or by using the scientific notation. The optional ``f `` post-suffix is
@@ -811,7 +811,7 @@ GDScript:
811811 smaller than a ``vec4 ``, such as ``vec2 `` or ``vec3 ``, are padded to
812812 the size of a ``vec4 ``. Scalar uniforms such as ``int `` or ``float ``
813813 are not padded, and ``bool `` is padded to the size of an ``int ``.
814-
814+
815815 Arrays count as the total size of their contents. If you need a uniform
816816 array that is larger than this limit, consider packing the data into a
817817 texture instead, since the *contents * of a texture do not count towards
You can’t perform that action at this time.
0 commit comments