PBM 材质

Hierarchy

  • ShaderMaterial
    • PBMMeshMaterial

Implements

Constructors

  • Parameters

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

    Returns PBMMeshMaterial

Properties

alphaMap: Texture = null
alphaMode: "OPAQUE" | "MASK" | "BLEND" = 'OPAQUE'
aoMap: Texture = null
aoMapIntensity: number = 1.0
brightness: number

亮度

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

对外模型裁切参数

color: Color = ...

内置参数

colorAlpha: number = 1
colorBrightness: number

HSV亮度调整值

colorSaturation: number

HSV饱和度调整值

colorStyle: "RGB" | "ALTITUDE" | "CONSTANT"

点云着色方式

combine: Combine = null
constantColor: Vector3

模型颜色

customShaderDefines: Record<string, any>

上一次的customShaderDefines

customShaderHash: string

上一次的customShader

customShaderUniforms: Record<string, Uniform>

上一次的customShaderUniforms

customShaders: CustomShader[]

自定义材质

displacementBias: number = 0
displacementMap: Texture = null
displacementScale: number = 1
distanceGain: number

distance增益

emissive: Color = ...
emissiveIntensity: number = 1
emissiveMap: Texture = null
envMap: Texture | CubeTexture = null
envMapIntensity: number = 1
floorIndex: number

所属楼层

floorStyle: "VISIBILITY" | "OPACITY"

楼层样式

gradientTexture: Texture

高程彩色图

lightMap: Texture = null
lightMapIntensity: number = 1.0
map: Texture = null
metalness: number = 0
metalnessMap: Texture = null
modelAlpha: number

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

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

模型透明度

outlineGain: number

outline增益

起始点

结束点

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

点云背面绘制方式

pointMaxPixel: number

点云像素最大值

pointMinPixel: number

点云像素最小值

pointScale: number

点云基础大小

pointShape: "SQUARE" | "CIRCLE"

点云形状

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

点云大小绘制方式

progress: number

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

reflectivity: number = 0.4
refractionRatio: number = 0.98
roughness: number = 1
roughnessMap: Texture = null
shaderType:
    | "none"
    | "basic"
    | "phong"
    | "standard" = 'basic'
shininess: number = 30
shownFloorIndex: number

楼层参数

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

更新版本

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

全景图过度混合

useAddBlend: boolean

半透明叠加渲染

useEDL: boolean

edl

useHQDepth: boolean

HQDepthMask

useHQWeight: boolean

hq

vertexTangents: boolean = false

Methods

  • Return a new material with the same parameters as this material.

    Returns any

  • 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

    • Optionalrenderer: WebGLRenderer

    Returns void

  • Parameters

    Returns void