RedGPU API - v3.0.0-Alpha
    Preparing search index...

    Class PBRMaterial

    The PBRMaterial class is a subclass of the ABitmapBaseMaterial class. It is used to create a PBR material for rendering.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    __packingList alphaBlend baseColorFactor baseColorTexture baseColorTexture_texCoord_index baseColorTextureSampler cutOff dirtyPipeline doubleSided emissiveFactor emissiveStrength emissiveTexture emissiveTexture_texCoord_index emissiveTextureSampler gpuRenderInfo KHR_anisotropyRotation KHR_anisotropyStrength KHR_anisotropyTexture KHR_anisotropyTexture_texCoord_index KHR_anisotropyTextureSampler KHR_attenuationColor KHR_attenuationDistance KHR_clearcoatFactor KHR_clearcoatNormalScale KHR_clearcoatNormalTexture KHR_clearcoatNormalTexture_texCoord_index KHR_clearcoatNormalTextureSampler KHR_clearcoatRoughnessFactor KHR_clearcoatRoughnessTexture KHR_clearcoatRoughnessTexture_texCoord_index KHR_clearcoatRoughnessTextureSampler KHR_clearcoatTexture KHR_clearcoatTexture_texCoord_index KHR_clearcoatTextureSampler KHR_diffuseTransmissionColorFactor KHR_diffuseTransmissionColorTexture KHR_diffuseTransmissionColorTexture_texCoord_index KHR_diffuseTransmissionColorTextureSampler KHR_diffuseTransmissionFactor KHR_diffuseTransmissionTexture KHR_diffuseTransmissionTexture_texCoord_index KHR_diffuseTransmissionTextureSampler KHR_dispersion KHR_iridescenceFactor KHR_iridescenceIor KHR_iridescenceTexture KHR_iridescenceTextureSampler KHR_iridescenceThicknessMaximum KHR_iridescenceThicknessMinimum KHR_iridescenceThicknessTexture KHR_iridescenceThicknessTextureSampler KHR_materials_ior KHR_sheenColorFactor KHR_sheenColorTexture KHR_sheenColorTextureSampler KHR_sheenRoughnessFactor KHR_sheenRoughnessTexture KHR_sheenRoughnessTextureSampler KHR_specularColorFactor KHR_specularColorTexture KHR_specularColorTextureSampler KHR_specularFactor KHR_specularTexture KHR_specularTextureSampler KHR_thicknessFactor KHR_thicknessTexture KHR_thicknessTexture_texCoord_index KHR_thicknessTextureSampler KHR_transmissionFactor KHR_transmissionTexture KHR_transmissionTexture_texCoord_index KHR_transmissionTextureSampler metallicFactor metallicRoughnessTexture metallicRoughnessTexture_texCoord_index metallicRoughnessTextureSampler normalScale normalTexture normalTexture_texCoord_index normalTextureSampler occlusionStrength occlusionTexture occlusionTexture_texCoord_index occlusionTextureSampler opacity roughnessFactor tint transparent use2PathRender useCutOff useKHR_materials_anisotropy useKHR_materials_clearcoat useKHR_materials_diffuse_transmission useKHR_materials_iridescence useKHR_materials_sheen useKHR_materials_specular useKHR_materials_transmission useKHR_materials_unlit useKHR_materials_volume useNormalTexture useTint useVertexColor

    Accessors

    Methods

    Constructors

    Properties

    __packingList: any[]

    파이프라인 갱신 시 호출되는 콜백 리스트

    alphaBlend: number
    baseColorFactor: number[]
    baseColorTexture: BitmapTexture
    baseColorTexture_texCoord_index: number
    baseColorTextureSampler: Sampler
    cutOff: number
    dirtyPipeline: boolean = false

    파이프라인 dirty 상태 플래그

    doubleSided: boolean
    emissiveFactor: number[]
    emissiveStrength: number[]
    emissiveTexture: BitmapTexture
    emissiveTexture_texCoord_index: number
    emissiveTextureSampler: Sampler
    gpuRenderInfo: FragmentGPURenderInfo

    프래그먼트 GPU 렌더 정보 객체

    KHR_anisotropyRotation: number
    KHR_anisotropyStrength: number
    KHR_anisotropyTexture: BitmapTexture
    KHR_anisotropyTexture_texCoord_index: number
    KHR_anisotropyTextureSampler: Sampler
    KHR_attenuationColor: number[]
    KHR_attenuationDistance: number
    KHR_clearcoatFactor: number
    KHR_clearcoatNormalScale: number
    KHR_clearcoatNormalTexture: BitmapTexture
    KHR_clearcoatNormalTexture_texCoord_index: number
    KHR_clearcoatNormalTextureSampler: Sampler
    KHR_clearcoatRoughnessFactor: number
    KHR_clearcoatRoughnessTexture: BitmapTexture
    KHR_clearcoatRoughnessTexture_texCoord_index: number
    KHR_clearcoatRoughnessTextureSampler: Sampler
    KHR_clearcoatTexture: BitmapTexture
    KHR_clearcoatTexture_texCoord_index: number
    KHR_clearcoatTextureSampler: Sampler
    KHR_diffuseTransmissionColorFactor: [number, number, number]
    KHR_diffuseTransmissionColorTexture: BitmapTexture
    KHR_diffuseTransmissionColorTexture_texCoord_index: number
    KHR_diffuseTransmissionColorTextureSampler: Sampler
    KHR_diffuseTransmissionFactor: number
    KHR_diffuseTransmissionTexture: BitmapTexture
    KHR_diffuseTransmissionTexture_texCoord_index: number
    KHR_diffuseTransmissionTextureSampler: Sampler
    KHR_dispersion: boolean
    KHR_iridescenceFactor: number
    KHR_iridescenceIor: number
    KHR_iridescenceTexture: BitmapTexture
    KHR_iridescenceTextureSampler: Sampler
    KHR_iridescenceThicknessMaximum: number
    KHR_iridescenceThicknessMinimum: number
    KHR_iridescenceThicknessTexture: BitmapTexture
    KHR_iridescenceThicknessTextureSampler: Sampler
    KHR_materials_ior: number
    KHR_sheenColorFactor: [number, number, number]
    KHR_sheenColorTexture: BitmapTexture
    KHR_sheenColorTextureSampler: Sampler
    KHR_sheenRoughnessFactor: number
    KHR_sheenRoughnessTexture: BitmapTexture
    KHR_sheenRoughnessTextureSampler: Sampler
    KHR_specularColorFactor: [number, number, number]
    KHR_specularColorTexture: BitmapTexture
    KHR_specularColorTextureSampler: Sampler
    KHR_specularFactor: number
    KHR_specularTexture: BitmapTexture
    KHR_specularTextureSampler: Sampler
    KHR_thicknessFactor: number
    KHR_thicknessTexture: BitmapTexture
    KHR_thicknessTexture_texCoord_index: number
    KHR_thicknessTextureSampler: Sampler
    KHR_transmissionFactor: number
    KHR_transmissionTexture: BitmapTexture
    KHR_transmissionTexture_texCoord_index: number
    KHR_transmissionTextureSampler: Sampler
    metallicFactor: number
    metallicRoughnessTexture: BitmapTexture
    metallicRoughnessTexture_texCoord_index: number
    metallicRoughnessTextureSampler: Sampler
    normalScale: number
    normalTexture: BitmapTexture
    normalTexture_texCoord_index: number
    normalTextureSampler: Sampler
    occlusionStrength: number
    occlusionTexture: BitmapTexture
    occlusionTexture_texCoord_index: number
    occlusionTextureSampler: Sampler
    opacity: number

    머티리얼의 불투명도(0~1)

    roughnessFactor: number
    tint: ColorRGBA

    머티리얼의 틴트 컬러(RGBA)

    transparent: boolean = false

    머티리얼 투명도 여부

    use2PathRender: boolean

    2패스 렌더링 사용 여부

    useCutOff: boolean
    useKHR_materials_anisotropy: boolean
    useKHR_materials_clearcoat: boolean
    useKHR_materials_diffuse_transmission: boolean
    useKHR_materials_iridescence: boolean
    useKHR_materials_sheen: boolean
    useKHR_materials_specular: boolean
    useKHR_materials_transmission: boolean
    useKHR_materials_unlit: boolean
    useKHR_materials_volume: boolean
    useNormalTexture: boolean
    useTint: boolean

    틴트 컬러 사용 여부

    useVertexColor: boolean

    Accessors

    • get tintBlendMode(): string
    • set tintBlendMode(
          value:
              | "SUBTRACT"
              | "NORMAL"
              | "MULTIPLY"
              | "LIGHTEN"
              | "SCREEN"
              | "LINEAR_DODGE"
              | "DARKEN"
              | "OVERLAY"
              | "COLOR_DODGE"
              | "COLOR_BURN"
              | "HARD_LIGHT"
              | "SOFT_LIGHT"
              | "DIFFERENCE"
              | "EXCLUSION"
              | "DIVIDE"
              | "VIVID_LIGHT"
              | "LINEAR_BURN"
              | "PIN_LIGHT"
              | "SATURATION"
              | "HUE"
              | "LUMINOSITY"
              | "COLOR"
              | "NEGATION"
              | Material.TINT_BLEND_MODE,
      ): void

      Parameters

      • value:
            | "SUBTRACT"
            | "NORMAL"
            | "MULTIPLY"
            | "LIGHTEN"
            | "SCREEN"
            | "LINEAR_DODGE"
            | "DARKEN"
            | "OVERLAY"
            | "COLOR_DODGE"
            | "COLOR_BURN"
            | "HARD_LIGHT"
            | "SOFT_LIGHT"
            | "DIFFERENCE"
            | "EXCLUSION"
            | "DIVIDE"
            | "VIVID_LIGHT"
            | "LINEAR_BURN"
            | "PIN_LIGHT"
            | "SATURATION"
            | "HUE"
            | "LUMINOSITY"
            | "COLOR"
            | "NEGATION"
            | Material.TINT_BLEND_MODE

      Returns void

    Methods