ULRE/ShaderLibrary/GetMI.glsl

9 lines
148 B
Plaintext
Raw Normal View History

2023-10-07 17:02:00 +08:00
MaterialInstance GetMI()
{
#if ShaderStage == VertexShader
return mtl.mi[Assign.y];
#else
return mtl.mi[Input.MaterialInstanceID];
#endif
}