Shader.SetGlobalMatrix 设置全局矩阵

static function PropertyToID (name : string) : int

Description描述

Sets a global matrix property for all shaders.

为所有着色器设置一个全局矩阵。

Global properties are used if a shader needs them but the material does not have them defined (for example, if the shader does not expose them in Properties block).

如果一个着色器需要某个属性,但材质没有定义它们将使用全局属性(例如,如果着色器不在 Properties模块中暴露它们)。

参见:SetGlobalColor, SetGlobalFloat; Material class

Page last updated: 2011-3-31