기술 자료

Unity Engine


User Manual

Script Reference

Unity Engine


Make a URP shader compatible with the SRP Batcher

Ensure that a URP shader is SRP Batcher compatible.
읽는 시간 1분최근 업데이트: 한 달 전

To ensure that a Shader is SRP Batcher compatible:
  • Declare all Material properties in a single CBUFFER called
    UnityPerMaterial
    .
  • Declare all built-in engine properties, such as
    unity_ObjectToWorld
    or
    unity_WorldTransformParams
    , in a single CBUFFER called
    UnityPerDraw
    .
For more information on the SRP Batcher, refer to the documentation on the Scriptable Render Pipeline (SRP) Batcher.