Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PBRMaterial

Hierarchy

Index

Constructors

  • new PBRMaterial(__namedParameters?: Partial<{ gamma: number; glossinessFactor: number; metallicFactor: number; metallicRoughnessTexture: Texture; occlusionStrength: number; occlusionTexture: Texture; reflectionTexture: Texture; refractionDepth: number; refractionRatio: number; refractionTexture: Texture; roughnessFactor: number; specularGlossinessTexture: Texture } & BaseConfigParams>): PBRMaterial
  • Parameters

    • Optional __namedParameters: Partial<{ gamma: number; glossinessFactor: number; metallicFactor: number; metallicRoughnessTexture: Texture; occlusionStrength: number; occlusionTexture: Texture; reflectionTexture: Texture; refractionDepth: number; refractionRatio: number; refractionTexture: Texture; roughnessFactor: number; specularGlossinessTexture: Texture } & BaseConfigParams>

    Returns PBRMaterial

Properties

_shader: IShader
coreData: CoreData
diffuseColor: Color

漫反射光颜色

diffuseTexture: Texture

纹理

emissionColor: Color

辐射光颜色,自发光

emissionTexture: Texture

自发光纹理

gamma: number
glossinessFactor: number

光泽度

metallicFactor: number

金属度

metallicRoughnessTexture: Texture

金属粗糙度纹理

name: string
normalTexture: Texture

法线贴图

normalTextureIntensity: number

法线纹理强度

occlusionStrength: number

遮挡强度

occlusionTexture: Texture

遮挡纹理

reflectionTexture: Texture

反射纹理

refractionDepth: number

折射深度

refractionRatio: number

折射比例

refractionTexture: Texture

折射纹理

roughnessFactor: number

粗糙度

specularColor: Color

镜面反射光颜色

specularGlossinessTexture: Texture

高光光泽度纹理

specularTexture: Texture

高光纹理

tilingOffset: Vector4

Tiling表示UV坐标的缩放倍数,Offset表示UV坐标的起始位置。

Accessors

  • get alpha(): number
  • set alpha(value: number): void
  • alpha测试值

    Returns number

  • alpha测试值

    Parameters

    • value: number

    Returns void

  • Returns BlendMode

  • Parameters

    Returns void

  • 设置depth function

    memberof

    Material

    Parameters

    Returns void

  • get isTransparent(): boolean
  • set isTransparent(value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

  • Returns RenderFace

  • Parameters

    Returns void

  • Returns IShader

Methods

Generated using TypeDoc