ShaderVariant
Create a ShaderVariant with the provided shader pass and keywords.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Constructor
- Namespace: UnityEngine.Experimental.Rendering
- Assembly: UnityEngine.CoreModule
ShaderVariant(Shader, PassIdentifier, LocalKeyword[])
Create a ShaderVariant with the provided shader pass and keywords.
public ShaderVariant(Shader shader, PassIdentifier passId, LocalKeyword[] keywords)
Parameters
Shader used in the variant.
PassIdentifier used in the variant.
Array of keywords used in the variant.
ShaderVariant(Material, PassIdentifier)
Create a ShaderVariant with the provided shader pass and keywords.
public ShaderVariant(Material material, PassIdentifier passId)
Parameters
Material with the shader and enabled keywords used in the variant.
PassIdentifier used in the variant.