9 lines
148 B
GLSL
9 lines
148 B
GLSL
MaterialInstance GetMI()
|
|
{
|
|
#if ShaderStage == VertexShader
|
|
return mtl.mi[Assign.y];
|
|
#else
|
|
return mtl.mi[Input.MaterialInstanceID];
|
|
#endif
|
|
}
|