Interface PlaneConfig

interface PlaneConfig {
    depthTest?: boolean;
    depthWrite?: boolean;
    fragmentShader: string;
    frustumCulled?: boolean;
    map?: Texture;
    material?: Material;
    materialParam?: ShaderMaterialParameters;
    mouseInputPos?: [number, number];
    opacity?: number;
    opacityColor?: ColorRepresentation;
    renderOrder?: number;
    uniforms: {
        [uniform: string]: IUniform<any>;
    };
    vertexShader: string;
}

Properties

depthTest?: boolean

深度测试

depthWrite?: boolean

写深度 默认false

fragmentShader: string
frustumCulled?: boolean

视锥体剔除 默认true

map?: Texture

纹理

material?: Material

直接给材质参数

materialParam?: ShaderMaterialParameters

材质参数

mouseInputPos?: [number, number]

如果不输入,则默认为当前鼠标 如输入[0-1]

opacity?: number

透明度

opacityColor?: ColorRepresentation

透明色

renderOrder?: number

渲染次序

uniforms: {
    [uniform: string]: IUniform<any>;
}

Type declaration

  • [uniform: string]: IUniform<any>
vertexShader: string