PBM 材质

Hierarchy

  • ShaderMaterial
    • PBMMeshMaterial

Implements

Constructors

  • Parameters

    • shaderType: "none" | "basic" | "phong" = 'basic'
    • parameters: Partial<PBMParameters> = {}

    Returns PBMMeshMaterial

Properties

alphaMap: Texture = null
aoMap: Texture = null
aoMapIntensity: number = 1.0
brightness: number

亮度

bumpMap: Texture = null
bumpScale: number = 1
clippers: ClipperParameter[]

对外模型裁切参数

color: Color = ...

内置参数

constantColor: Vector3

模型颜色

displacementBias: number = 0
displacementMap: Texture = null
displacementScale: number = 1
emissive: Color = ...
emissiveIntensity: number = 1
emissiveMap: Texture = null
envMap: Texture | CubeTexture = null
floor: number

所属楼层

gradientTexture: Texture

高程彩色图

lightMap: Texture = null
lightMapIntensity: number = 1.0
map: Texture = null
modelAlpha: number

模型贴图和全景图的混合程度 [0-1]

normalMap: Texture = null
normalMapType: NormalMapTypes = THREE.TangentSpaceNormalMap
normalScale: Vector2 = ...
opacity: number

模型透明度

起始点

结束点

pointBack: "VISIBLE" | "HIDDEN" | "DARK"

点云背面绘制方式

pointColor: "RGB" | "ALTITUDE"

点云着色方式

pointMaxPixel: number

点云像素最大值

pointMinPixel: number

点云像素最小值

pointScale: number

点云基础大小

pointShape: "SQUARE" | "CIRCLE"

点云形状

pointSize: "FIXED" | "ATTENUATION" | "GEOMETRIC"

点云大小绘制方式

progress: number

全景图混合程度 [0-1]

reflectivity: number = 1
refractionRatio: number = 0.98
shaderType: "none" | "basic" | "phong" = 'basic'
shininess: number = 30
shownFloorIndex: number

楼层参数

specular: Color = ...
specularMap: Texture = null
syncModelVersion?: string

更新版本

transition: "BLACK" | "SPREAD" | "FADE"

全景图过度混合

useEDL: boolean

edl

useHQDepth: boolean

HQDepthMask

useHQWeight: boolean

hq

Methods

  • Copy the parameters from the passed material into this material.

    Parameters

    Returns this

  • An optional callback that is executed immediately before the shader program is compiled. This function is called with the shader source code as a parameter. Useful for the modification of built-in materials.

    Parameters

    • shader: Shader

      Source code of the shader

    • renderer: WebGLRenderer

      WebGLRenderer Context that is initializing the material

    Returns void

  • Parameters

    • renderer: WebGLRenderer

    Returns void

  • Parameters

    Returns void

  • Parameters

    • renderer: WebGLRenderer
    • camera: Camera

    Returns void