Version: 2017.1
public int passCount ;

描述

此材质中的通道数(只读)。

This is mostly used in direct drawing code using GL class. For example, Image Effects use materials for implementing screen post-processing. For each pass in the material they activate the pass (see SetPass for an example) and draw a fullscreen quad.

另请参阅:SetPass 函数、GL 类、ShaderLab documentation