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