跳转到内容

getmaterialid

上下文着色

int  getmaterialid()

返回当前着色图元的材质ID。该ID对应于正在被评估的材质,并考虑了样式表和详细属性赋值带来的覆盖。