기술 자료

Unity Engine


Unity Engine


Examples of GPU instancing shaders in the Built-In Render Pipeline

Examples of an HLSL shader and a Surface Shader that support GPU instancing.
읽는 시간 1분최근 업데이트: 한 달 전

중요
The Built-In Render Pipeline is deprecated and will be made obsolete in a future release.
It remains supported, including bug fixes and maintenance, through the full Unity 6.7 LTS lifecycle.
Examples of an HLSL shader and a Surface Shader that support GPU instancing.

Page

Description

Example of an HLSL shader that supports GPU InstancingAn example of an instanced vertex and fragment shader with different color values for each instance.
Example of a Surface Shader that supports GPU InstancingAn example of a Surface Shader with different color values for each instance.
Example of changing per-instance data at runtimeAn example of using
MaterialPropertyBlock
objects to set the color property of an instanced shader.