RendererVariableManager

RendererVariableManager class

此类管理渲染中使用的变量 @hideconstructor

方法

getWorldTime

名称描述
getWorldTime()时间(秒)

Result:


setWorldTime

名称描述
setWorldTime(value)时间(秒)

Result:


getShadowCaster

名称描述
getShadowCaster()阴影投射器在世界坐标系中的位置

Result:


setShadowCaster

名称描述
setShadowCaster(value)阴影投射器在世界坐标系中的位置

Result:


getShadowmap

名称描述
getShadowmap()用于阴影映射的深度纹理

Result:


setShadowmap

名称描述
setShadowmap(value)用于阴影映射的深度纹理

Result:


getMatrixLightSpace

名称描述
getMatrixLightSpace()光空间变换矩阵

Result:


setMatrixLightSpace

名称描述
setMatrixLightSpace(value)光空间变换矩阵

Result:


getMatrixViewProjection

名称描述
getMatrixViewProjection()视图和投影变换矩阵。

Result:


getMatrixWorldViewProjection

名称描述
getMatrixWorldViewProjection()世界视图和投影变换矩阵

Result:


getMatrixWorld

名称描述
getMatrixWorld()世界变换矩阵

Result:


getMatrixWorldNormal

名称描述
getMatrixWorldNormal()将法线从对象空间转换到世界空间的矩阵。

Result:


getMatrixProjection

名称描述
getMatrixProjection()投影变换矩阵

Result:


setMatrixProjection

名称描述
setMatrixProjection(value)投影变换矩阵

Result:


getMatrixView

名称描述
getMatrixView()视图变换矩阵

Result:


setMatrixView

名称描述
setMatrixView(value)视图变换矩阵

Result:


getCameraPosition

名称描述
getCameraPosition()相机在世界坐标系中的位置

Result:


setCameraPosition

名称描述
setCameraPosition(value)相机在世界坐标系中的位置

Result:


getDepthBias

名称描述
getDepthBias()阴影映射的深度偏差,默认值为 0.001

Result:


setDepthBias

名称描述
setDepthBias(value)阴影映射的深度偏差,默认值为 0.001

Result:


getViewportSize

名称描述
getViewportSize()视口的大小,以像素为单位

Result:


setViewportSize

名称描述
setViewportSize(value)视口的大小,以像素为单位

Result:


getWorldAmbient

名称描述
getWorldAmbient()在视口中定义的环境颜色。

Result:


setWorldAmbient

名称描述
setWorldAmbient(value)在视口中定义的环境颜色。

Result: