11 lines
258 B
GLSL
11 lines
258 B
GLSL
void HandoverMI()
|
|
{
|
|
#if ShaderStage == VertexShader
|
|
Output.MaterialInstanceID=Assign.y;
|
|
#elif ShaderStage == GeometryShader
|
|
Output.MaterialInstanceID=Input[0].MaterialInstanceID;
|
|
#else
|
|
Output.MaterialInstanceID=Input.MaterialInstanceID;
|
|
#endif
|
|
}
|