File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
tutorials/shaders/shader_reference Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ Values marked as ``in`` are read-only. Values marked as ``out`` can optionally b
4545not necessarily contain sensible values. Values marked as ``inout `` provide a sensible default
4646value, and can optionally be written to. Samplers cannot be written to so they are not marked.
4747
48+ Not all built-ins are available in all processing functions. To access a vertex
49+ built-in from the ``fragment() `` function, you can use a :ref: `varying <doc_shading_language_varyings >`.
50+ The same applies for accessing fragment built-ins from the ``light() `` function.
51+
4852Global built-ins
4953----------------
5054
Original file line number Diff line number Diff line change @@ -97,6 +97,10 @@ Values marked as ``in`` are read-only. Values marked as ``out`` can optionally b
9797not necessarily contain sensible values. Values marked as ``inout `` provide a sensible default
9898value, and can optionally be written to. Samplers cannot be written to so they are not marked.
9999
100+ Not all built-ins are available in all processing functions. To access a vertex
101+ built-in from the ``fragment() `` function, you can use a :ref: `varying <doc_shading_language_varyings >`.
102+ The same applies for accessing fragment built-ins from the ``light() `` function.
103+
100104Global built-ins
101105----------------
102106
You can’t perform that action at this time.
0 commit comments