Examples of using built-in macros to access per-instance data and constant data in DOTS Instancing shadersA program that runs on the GPU. More info
See in Glossary.
Page | Description |
---|---|
Example of a DOTS Instancing shader that accesses per-instance data | An example of accessing per-instance color data in a DOTS Instancing shader. |
Example of a DOTS Instancing shader that accesses constant data | An example of accessing constant color data in a DOTS Instancing shader. |
Example of using UNITY_DOTS_INSTANCED_PROP macros in a DOTS Instancing shader | An example of using the UNITY_ACCESS_DOTS_INSTANCED_PROP to specify if a property can be instanced or not at compile time. |