Interface Uniforms

Uniform 数据

Hierarchy

  • Uniforms

Indexable

[key: string]: UniformType | number | number[] | {
    toArray() => number[] | Float32Array;
} | {
    toArray() => number[] | Float32Array;
}[]

Properties

_Time: Vector4

t(单位秒) 是自该初始化开始所经过的时间,4个分量分别是 (t/20, t, t2, t3)

s_skyBoxTexture: TextureCube

天空盒纹理

u_ITMVMatrix: Matrix4x4

模型-摄像机 逆转置矩阵,用于计算摄像机空间法线

u_ITModelMatrix: Matrix4x4

模型逆转置矩阵,用于计算全局法线 参考:http://blog.csdn.net/christina123y/article/details/5963679

u_cameraMatrix: Matrix4x4

摄像机矩阵

u_cameraPos: Vector3

摄像机位置

u_castShadowDirectionalLights: UCastShadowDirectionalLight[]

生成投影的方向光源

u_castShadowPointLights: UCastShadowPointLight[]

生成投影的点光源

u_castShadowSpotLights: UCastShadowSpotLight[]

生成投影的聚光灯光源

u_diffuseSegment: Vector4
u_diffuseSegmentValue: Vector4
u_directionalLights: UDirectionalLight[]

方向光源数组

u_directionalShadowMaps: Texture2D[]

方向光源阴影图

u_directionalShadowMatrices: Matrix4x4[]

方向光源投影矩阵列表

u_lightPosition: Vector3
u_lightType: LightType
u_modelMatrix: Matrix4x4

模型矩阵

u_mvMatrix: Matrix4x4

模型-摄像机 矩阵

u_objectID: number

3D对象编号

u_outlineColor: Color4

描边颜色

u_outlineMorphFactor: number

描边形态因子 (0.0,1.0):0.0表示延法线方向,1.0表示延顶点方向

u_outlineSize: number

描边宽度

u_particle_billboardMatrix: Matrix3x3

粒子公告牌矩阵

u_pointLights: UPointLight[]

点光源

u_pointShadowMaps: Texture2D[]

点光源阴影图

u_projectionMatrix: Matrix4x4

投影矩阵

u_scaleByDepth: number

单位深度映射到屏幕像素值

u_sceneAmbientColor: Color4

场景环境光

u_shadowCameraFar: number
u_shadowCameraNear: number
u_skeletonGlobalMatrices: Matrix4x4[]

骨骼全局矩阵

u_skyBoxSize: number

天空盒尺寸

u_specularSegment: number
u_spotLights: USpotLight[]

聚光灯光源

u_spotShadowMaps: Texture2D[]

点光源阴影图

u_spotShadowMatrix: Matrix4x4[]
u_viewMatrix: Matrix4x4

(view矩阵)摄像机逆矩阵

u_viewProjection: Matrix4x4

全局投影矩阵

u_wireframeColor: Color4

线框颜色

Generated using TypeDoc