Class OpenPBRMaterialLoadingAdapter
Implements
- IMaterialLoadingAdapter
Index
Constructors
Accessors
Methods
Constructors
constructor
-
Creates a new instance of the OpenPBRMaterialLoadingAdapter.
Parameters
- material: Material
The OpenPBR material to adapt.
Returns OpenPBRMaterialLoadingAdapter
- material: Material
Accessors
alpha Cut Off
-
get alphaCutOff(): number
Gets the alpha cutoff value.
Returns number
Default value of 0.5 (OpenPBR doesn't support this directly)
-
set alphaCutOff(value: number): void
Sets the alpha cutoff value for alpha testing. Note: OpenPBR doesn't have a direct equivalent, so this is a no-op.
Parameters
- value: number
The alpha cutoff threshold (ignored for OpenPBR)
Returns void
- value: number
ambient Occlusion Texture
-
get ambientOcclusionTexture(): Nullable<BaseTexture>
Gets the ambient occlusion texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The ambient occlusion texture or null
-
set ambientOcclusionTexture(value: Nullable<BaseTexture>): void
Sets the ambient occlusion texture of the OpenPBR material.
Parameters
- value: Nullable<BaseTexture>
The ambient occlusion texture or null
Returns void
- value: Nullable<BaseTexture>
ambient Occlusion Texture Strength
-
get ambientOcclusionTextureStrength(): number
Gets the ambient occlusion texture strength from the texture's level property.
Returns number
The strength value, defaults to 1.0 if no texture or level is set
-
set ambientOcclusionTextureStrength(value: number): void
Sets the ambient occlusion texture strength by modifying the texture's level.
Parameters
- value: number
The strength value (typically 0-1)
Returns void
- value: number
back Face Culling
-
get backFaceCulling(): boolean
Gets whether back face culling is enabled.
Returns boolean
True if back face culling is enabled
-
set backFaceCulling(value: boolean): void
Sets whether back face culling is enabled.
Parameters
- value: boolean
True to enable back face culling
Returns void
- value: boolean
base Color
-
get baseColor(): Color3
Gets the base color of the OpenPBR material.
Returns Color3
The base color as a Color3
-
set baseColor(value: Color3): void
Sets the base color of the OpenPBR material.
Parameters
- value: Color3
The base color as a Color3
Returns void
- value: Color3
base Color Texture
-
get baseColorTexture(): Nullable<BaseTexture>
Gets the base color texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The base color texture or null
-
set baseColorTexture(value: Nullable<BaseTexture>): void
Sets the base color texture of the OpenPBR material.
Parameters
- value: Nullable<BaseTexture>
The base color texture or null
Returns void
- value: Nullable<BaseTexture>
base Diffuse Roughness
-
get baseDiffuseRoughness(): number
Gets the base diffuse roughness of the OpenPBR material.
Returns number
The diffuse roughness value (0-1)
-
set baseDiffuseRoughness(value: number): void
Sets the base diffuse roughness of the OpenPBR material.
Parameters
- value: number
The diffuse roughness value (0-1)
Returns void
- value: number
base Diffuse Roughness Texture
-
get baseDiffuseRoughnessTexture(): Nullable<BaseTexture>
Gets the base diffuse roughness texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The diffuse roughness texture or null
-
set baseDiffuseRoughnessTexture(value: Nullable<BaseTexture>): void
Sets the base diffuse roughness texture of the OpenPBR material.
Parameters
- value: Nullable<BaseTexture>
The diffuse roughness texture or null
Returns void
- value: Nullable<BaseTexture>
base Metalness
-
get baseMetalness(): number
Gets the base metalness value of the OpenPBR material.
Returns number
The metalness value (0-1)
-
set baseMetalness(value: number): void
Sets the base metalness value of the OpenPBR material.
Parameters
- value: number
The metalness value (0-1)
Returns void
- value: number
base Metalness Texture
-
get baseMetalnessTexture(): Nullable<BaseTexture>
Gets the base metalness texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The metalness texture or null
-
set baseMetalnessTexture(value: Nullable<BaseTexture>): void
Sets the base metalness texture of the OpenPBR material.
Parameters
- value: Nullable<BaseTexture>
The metalness texture or null
Returns void
- value: Nullable<BaseTexture>
coat Color
-
get coatColor(): Color3
Gets the coat color of the OpenPBR material.
Returns Color3
-
set coatColor(value: Color3): void
Sets the coat color of the OpenPBR material.
Parameters
- value: Color3
The coat color as a Color3
Returns void
- value: Color3
coat Color Texture
-
set coatColorTexture(value: Nullable<BaseTexture>): void
Sets the coat color texture of the OpenPBR material.
Parameters
- value: Nullable<BaseTexture>
The coat color texture or null
Returns void
- value: Nullable<BaseTexture>
coat Darkening
-
get coatDarkening(): number
Sets the coat darkening
Returns number
-
set coatDarkening(value: number): void
Sets the coat darkening value of the OpenPBR material.
Parameters
- value: number
The coat darkening value
Returns void
- value: number
coat Darkening Texture
-
set coatDarkeningTexture(value: Nullable<BaseTexture>): void
Sets the coat darkening texture (OpenPBR: coatDarkeningTexture, no PBR equivalent)
Parameters
- value: Nullable<BaseTexture>
Returns void
coat Ior
-
get coatIor(): number
Sets the coat index of refraction (IOR)
Returns number
-
set coatIor(value: number): void
Sets the coat index of refraction (IOR) of the OpenPBR material.
Parameters
- value: number
Returns void
coat Roughness
-
get coatRoughness(): number
Gets the coat roughness of the OpenPBR material.
Returns number
The coat roughness value (0-1)
-
set coatRoughness(value: number): void
Sets the coat roughness of the OpenPBR material.
Parameters
- value: number
The coat roughness value (0-1)
Returns void
- value: number
coat Roughness Anisotropy
-
get coatRoughnessAnisotropy(): number
Gets the coat roughness anisotropy. TODO: Implementation pending OpenPBR coat anisotropy feature availability.
Returns number
Currently returns 0 as coat anisotropy is not yet available
-
set coatRoughnessAnisotropy(value: number): void
Sets the coat roughness anisotropy. TODO: Implementation pending OpenPBR coat anisotropy feature availability.
Parameters
- value: number
The coat anisotropy intensity value
Returns void
- value: number
coat Roughness Texture
-
get coatRoughnessTexture(): Nullable<BaseTexture>
Gets the coat roughness texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The coat roughness texture or null
-
set coatRoughnessTexture(value: Nullable<BaseTexture>): void
Sets the coat roughness texture of the OpenPBR material.
Parameters
- value: Nullable<BaseTexture>
The coat roughness texture or null
Returns void
- value: Nullable<BaseTexture>
coat Weight
-
get coatWeight(): number
Gets the coat weight of the OpenPBR material.
Returns number
The coat weight value (0-1)
-
set coatWeight(value: number): void
Sets the coat weight of the OpenPBR material.
Parameters
- value: number
The coat weight value (0-1)
Returns void
- value: number
coat Weight Texture
-
get coatWeightTexture(): Nullable<BaseTexture>
Gets the coat weight texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The coat weight texture or null
-
set coatWeightTexture(value: Nullable<BaseTexture>): void
Sets the coat weight texture of the OpenPBR material.
Parameters
- value: Nullable<BaseTexture>
The coat weight texture or null
Returns void
- value: Nullable<BaseTexture>
diffuse Transmission Tint
-
get diffuseTransmissionTint(): Color3
Gets the diffuse transmission tint of the material
Returns Color3
-
set diffuseTransmissionTint(value: Color3): void
Sets the diffuse transmission tint of the material
Parameters
- value: Color3
Returns void
diffuse Transmission Tint Texture
-
set diffuseTransmissionTintTexture(value: Nullable<BaseTexture>): void
Sets the diffuse transmission tint texture of the material
Parameters
- value: Nullable<BaseTexture>
Returns void
emission Color
-
get emissionColor(): Color3
Gets the emission color of the OpenPBR material.
Returns Color3
The emission color as a Color3
-
set emissionColor(value: Color3): void
Sets the emission color of the OpenPBR material.
Parameters
- value: Color3
The emission color as a Color3
Returns void
- value: Color3
emission Color Texture
-
get emissionColorTexture(): Nullable<BaseTexture>
Gets the emission color texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The emission texture or null
-
set emissionColorTexture(value: Nullable<BaseTexture>): void
Sets the emission color texture of the OpenPBR material.
Parameters
- value: Nullable<BaseTexture>
The emission texture or null
Returns void
- value: Nullable<BaseTexture>
emission Luminance
-
get emissionLuminance(): number
Gets the emission luminance of the OpenPBR material.
Returns number
The emission luminance value
-
set emissionLuminance(value: number): void
Sets the emission luminance of the OpenPBR material.
Parameters
- value: number
The emission luminance value
Returns void
- value: number
fuzz Color
-
set fuzzColor(value: Color3): void
Sets the fuzz color.
Parameters
- value: Color3
The fuzz color as a Color3
Returns void
- value: Color3
fuzz Color Texture
-
set fuzzColorTexture(value: Nullable<BaseTexture>): void
Sets the fuzz color texture.
Parameters
- value: Nullable<BaseTexture>
The fuzz color texture or null
Returns void
- value: Nullable<BaseTexture>
fuzz Roughness
-
set fuzzRoughness(value: number): void
Sets the fuzz roughness.
Parameters
- value: number
The fuzz roughness value (0-1)
Returns void
- value: number
fuzz Roughness Texture
-
set fuzzRoughnessTexture(value: Nullable<BaseTexture>): void
Sets the fuzz roughness texture.
Parameters
- value: Nullable<BaseTexture>
The fuzz roughness texture or null
Returns void
- value: Nullable<BaseTexture>
fuzz Weight
-
set fuzzWeight(value: number): void
Sets the fuzz weight.
Parameters
- value: number
The fuzz weight value
Returns void
- value: number
fuzz Weight Texture
-
set fuzzWeightTexture(value: Nullable<BaseTexture>): void
Sets the fuzz weight texture.
Parameters
- value: Nullable<BaseTexture>
The fuzz weight texture or null
Returns void
- value: Nullable<BaseTexture>
geometry Coat Normal Texture
-
get geometryCoatNormalTexture(): Nullable<BaseTexture>
Gets the geometry coat normal texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The coat normal texture or null
-
set geometryCoatNormalTexture(value: Nullable<BaseTexture>): void
Sets the geometry coat normal texture of the OpenPBR material.
Parameters
- value: Nullable<BaseTexture>
The coat normal texture or null
Returns void
- value: Nullable<BaseTexture>
geometry Coat Normal Texture Scale
-
set geometryCoatNormalTextureScale(value: number): void
Sets the geometry coat normal texture scale.
Parameters
- value: number
The scale value for the coat normal texture
Returns void
- value: number
geometry Coat Tangent Angle
-
set geometryCoatTangentAngle(value: number): void
Sets the coat tangent angle for anisotropy. TODO: Implementation pending OpenPBR coat anisotropy feature availability.
Parameters
- value: number
The coat anisotropy rotation angle in radians
Returns void
- value: number
geometry Coat Tangent Texture
-
get geometryCoatTangentTexture(): Nullable<BaseTexture>
Gets the coat tangent texture for anisotropy. TODO: Implementation pending OpenPBR coat anisotropy feature availability.
Returns Nullable<BaseTexture>
Currently returns null as coat anisotropy is not yet available
-
set geometryCoatTangentTexture(value: Nullable<BaseTexture>): void
Sets the coat tangent texture for anisotropy. TODO: Implementation pending OpenPBR coat anisotropy feature availability.
Parameters
- value: Nullable<BaseTexture>
The coat anisotropy texture or null
Returns void
- value: Nullable<BaseTexture>
geometry Normal Texture
-
get geometryNormalTexture(): Nullable<BaseTexture>
Gets the geometry normal texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The normal texture or null
-
set geometryNormalTexture(value: Nullable<BaseTexture>): void
Sets the geometry normal texture of the OpenPBR material.
Parameters
- value: Nullable<BaseTexture>
The normal texture or null
Returns void
- value: Nullable<BaseTexture>
geometry Opacity
-
get geometryOpacity(): number
Gets the geometry opacity of the OpenPBR material.
Returns number
The opacity value (0-1)
-
set geometryOpacity(value: number): void
Sets the geometry opacity of the OpenPBR material.
Parameters
- value: number
The opacity value (0-1)
Returns void
- value: number
geometry Tangent Angle
-
set geometryTangentAngle(value: number): void
Sets the anisotropy rotation angle.
Parameters
- value: number
The anisotropy rotation angle in radians
Returns void
- value: number
geometry Tangent Texture
-
get geometryTangentTexture(): Nullable<BaseTexture>
Gets the geometry tangent texture for anisotropy.
Returns Nullable<BaseTexture>
The anisotropy texture or null
-
set geometryTangentTexture(value: Nullable<BaseTexture>): void
Sets the geometry tangent texture for anisotropy. Automatically enables using anisotropy from the tangent texture.
Parameters
- value: Nullable<BaseTexture>
The anisotropy texture or null
Returns void
- value: Nullable<BaseTexture>
geometry Thin Walled
-
get geometryThinWalled(): boolean
Gets whether the material is thin-walled (i.e. non-volumetric) or not.
Returns boolean
-
set geometryThinWalled(value: boolean): void
Sets whether the material is thin-walled (i.e. non-volumetric) or not.
Parameters
- value: boolean
Returns void
glossiness
-
get glossiness(): number
Sets/gets the glossiness (inverted roughness) ONLY used for specular/glossiness workflow; has no effect when metallic/roughness workflow is active
Returns number
-
set glossiness(value: number): void
Sets the glossiness (inverted roughness) of the OpenPBR material.
Parameters
- value: number
Returns void
is Unlit
-
get isUnlit(): boolean
Whether the material should be treated as unlit
Returns boolean
-
set isUnlit(value: boolean): void
Sets whether the material should be treated as unlit
Parameters
- value: boolean
Returns void
material
-
get material(): OpenPBRMaterial
Gets the underlying material
Returns OpenPBRMaterial
refraction Background Texture
-
get refractionBackgroundTexture(): Nullable<BaseTexture>
Gets the refraction background texture
Returns Nullable<BaseTexture>
The refraction background texture or null
-
set refractionBackgroundTexture(value: Nullable<BaseTexture>): void
Sets the refraction background texture
Parameters
- value: Nullable<BaseTexture>
The refraction background texture or null
Returns void
- value: Nullable<BaseTexture>
specular Color
-
get specularColor(): Color3
Gets the specular color of the OpenPBR material.
Returns Color3
The specular color as a Color3
-
set specularColor(value: Color3): void
Sets the specular color of the OpenPBR material.
Parameters
- value: Color3
The specular color as a Color3
Returns void
- value: Color3
specular Color Texture
-
get specularColorTexture(): Nullable<BaseTexture>
Gets the specular color texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The specular color texture or null
-
set specularColorTexture(value: Nullable<BaseTexture>): void
Sets the specular color texture of the OpenPBR material. If the same texture is used for specular weight, optimizes by using alpha channel for weight.
Parameters
- value: Nullable<BaseTexture>
The specular color texture or null
Returns void
- value: Nullable<BaseTexture>
specular Ior
-
get specularIor(): number
Gets the specular index of refraction (IOR) of the OpenPBR material.
Returns number
The IOR value
-
set specularIor(value: number): void
Sets the specular index of refraction (IOR) of the OpenPBR material.
Parameters
- value: number
The IOR value
Returns void
- value: number
specular Roughness
-
get specularRoughness(): number
Gets the specular roughness of the OpenPBR material.
Returns number
The roughness value (0-1)
-
set specularRoughness(value: number): void
Sets the specular roughness of the OpenPBR material.
Parameters
- value: number
The roughness value (0-1)
Returns void
- value: number
specular Roughness Anisotropy
-
get specularRoughnessAnisotropy(): number
Gets the specular roughness anisotropy of the OpenPBR material.
Returns number
The anisotropy intensity value
-
set specularRoughnessAnisotropy(value: number): void
Sets the specular roughness anisotropy of the OpenPBR material.
Parameters
- value: number
The anisotropy intensity value
Returns void
- value: number
specular Roughness Texture
-
get specularRoughnessTexture(): Nullable<BaseTexture>
Gets the specular roughness texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The roughness texture or null
-
set specularRoughnessTexture(value: Nullable<BaseTexture>): void
Sets the specular roughness texture of the OpenPBR material.
Parameters
- value: Nullable<BaseTexture>
The roughness texture or null
Returns void
- value: Nullable<BaseTexture>
specular Weight
-
get specularWeight(): number
Gets the specular weight of the OpenPBR material.
Returns number
The specular weight value (0-1)
-
set specularWeight(value: number): void
Sets the specular weight of the OpenPBR material.
Parameters
- value: number
The specular weight value (0-1)
Returns void
- value: number
specular Weight Texture
-
get specularWeightTexture(): Nullable<BaseTexture>
Gets the specular weight texture of the OpenPBR material.
Returns Nullable<BaseTexture>
The specular weight texture or null
-
set specularWeightTexture(value: Nullable<BaseTexture>): void
Sets the specular weight texture of the OpenPBR material. If the same texture is used for specular color, optimizes by using alpha channel for weight.
Parameters
- value: Nullable<BaseTexture>
The specular weight texture or null
Returns void
- value: Nullable<BaseTexture>
subsurface Color
-
set subsurfaceColor(value: Color3): void
Sets the subsurface color.
Parameters
- value: Color3
The subsurface tint color as a Color3
Returns void
- value: Color3
subsurface Color Texture
-
set subsurfaceColorTexture(value: Nullable<BaseTexture>): void
Sets the subsurface color texture.
Parameters
- value: Nullable<BaseTexture>
The subsurface tint texture or null
Returns void
- value: Nullable<BaseTexture>
subsurface Radius
-
get subsurfaceRadius(): number
Gets the subsurface radius for subsurface scattering. subsurfaceRadiusScale * subsurfaceRadius gives the mean free path per color channel.
Returns number
-
set subsurfaceRadius(value: number): void
Sets the subsurface radius for subsurface scattering. subsurfaceRadiusScale * subsurfaceRadius gives the mean free path per color channel.
Parameters
- value: number
The subsurface radius value
Returns void
- value: number
subsurface Radius Scale
-
get subsurfaceRadiusScale(): Color3
Gets the subsurface radius scale for subsurface scattering. subsurfaceRadiusScale * subsurfaceRadius gives the mean free path per color channel.
Returns Color3
-
set subsurfaceRadiusScale(value: Color3): void
Sets the subsurface radius scale for subsurface scattering. subsurfaceRadiusScale * subsurfaceRadius gives the mean free path per color channel.
Parameters
- value: Color3
The subsurface radius scale as a Color3
Returns void
- value: Color3
subsurface Scatter Anisotropy
-
set subsurfaceScatterAnisotropy(value: number): void
Sets the subsurface scattering anisotropy.
Parameters
- value: number
The anisotropy intensity value
Returns void
- value: number
subsurface Weight
-
get subsurfaceWeight(): number
Sets/gets the subsurface weight
Returns number
-
set subsurfaceWeight(value: number): void
Sets the subsurface weight
Parameters
- value: number
Returns void
subsurface Weight Texture
-
get subsurfaceWeightTexture(): Nullable<BaseTexture>
Sets/gets the subsurface weight texture
Returns Nullable<BaseTexture>
-
set subsurfaceWeightTexture(value: Nullable<BaseTexture>): void
Sets the subsurface weight texture
Parameters
- value: Nullable<BaseTexture>
Returns void
thin Film Ior
-
set thinFilmIor(value: number): void
Sets the thin film IOR.
Parameters
- value: number
The thin film IOR value
Returns void
- value: number
thin Film Thickness Maximum
-
set thinFilmThicknessMaximum(value: number): void
Sets the thin film thickness maximum.
Parameters
- value: number
The maximum thickness value in nanometers
Returns void
- value: number
thin Film Thickness Minimum
-
set thinFilmThicknessMinimum(value: number): void
Sets the thin film thickness minimum.
Parameters
- value: number
The minimum thickness value in nanometers
Returns void
- value: number
thin Film Thickness Texture
-
set thinFilmThicknessTexture(value: Nullable<BaseTexture>): void
Sets the thin film thickness texture.
Parameters
- value: Nullable<BaseTexture>
The thin film thickness texture or null
Returns void
- value: Nullable<BaseTexture>
thin Film Weight
-
set thinFilmWeight(value: number): void
Sets the thin film weight.
Parameters
- value: number
The thin film weight value
Returns void
- value: number
thin Film Weight Texture
-
set thinFilmWeightTexture(value: Nullable<BaseTexture>): void
Sets the thin film weight texture.
Parameters
- value: Nullable<BaseTexture>
The thin film weight texture or null
Returns void
- value: Nullable<BaseTexture>
transmission Color
-
get transmissionColor(): Color3
Gets the attenuation color.
Returns Color3
-
set transmissionColor(value: Color3): void
Sets the attenuation color.
Parameters
- value: Color3
The attenuation color as a Color3
Returns void
- value: Color3
transmission Depth
-
get transmissionDepth(): number
Gets the attenuation distance.
Returns number
-
set transmissionDepth(value: number): void
Sets the attenuation distance.
Parameters
- value: number
The attenuation distance value
Returns void
- value: number
transmission Dispersion Abbe Number
-
set transmissionDispersionAbbeNumber(value: number): void
Sets the transmission dispersion Abbe number.
Parameters
- value: number
The Abbe number value
Returns void
- value: number
transmission Dispersion Scale
-
set transmissionDispersionScale(value: number): void
Sets the transmission dispersion scale.
Parameters
- value: number
The dispersion scale value
Returns void
- value: number
transmission Scatter
-
get transmissionScatter(): Color3
Gets the transmission scatter coefficient.
Returns Color3
The scatter coefficient as a Vector3
-
set transmissionScatter(value: Color3): void
Sets the transmission scatter coefficient.
Parameters
- value: Color3
The scatter coefficient as a Vector3
Returns void
- value: Color3
transmission Scatter Anisotropy
-
set transmissionScatterAnisotropy(value: number): void
Sets the transmission scattering anisotropy.
Parameters
- value: number
The anisotropy intensity value (-1 to 1)
Returns void
- value: number
transmission Scatter Texture
-
get transmissionScatterTexture(): Nullable<BaseTexture>
Gets the transmission scatter texture.
Returns Nullable<BaseTexture>
The transmission scatter texture or null
-
set transmissionScatterTexture(value: Nullable<BaseTexture>): void
Sets the transmission scatter texture.
Parameters
- value: Nullable<BaseTexture>
The transmission scatter texture or null
Returns void
- value: Nullable<BaseTexture>
transmission Weight
-
get transmissionWeight(): number
Gets the transmission weight.
Returns number
Currently returns 0 as transmission is not yet available
-
set transmissionWeight(value: number): void
Sets the transmission weight.
Parameters
- value: number
The transmission weight value (0-1)
Returns void
- value: number
transmission Weight Texture
-
get transmissionWeightTexture(): Nullable<BaseTexture>
Sets the transmission weight texture
Returns Nullable<BaseTexture>
-
set transmissionWeightTexture(value: Nullable<BaseTexture>): void
Sets the transmission weight texture.
Parameters
- value: Nullable<BaseTexture>
The transmission weight texture or null
Returns void
- value: Nullable<BaseTexture>
transparency As Alpha Coverage
-
get transparencyAsAlphaCoverage(): boolean
Gets whether the transparency is treated as alpha coverage.
Returns boolean
-
set transparencyAsAlphaCoverage(value: boolean): void
Sets/Gets whether the transparency is treated as alpha coverage
Parameters
- value: boolean
Returns void
two Sided Lighting
-
get twoSidedLighting(): boolean
Gets whether two-sided lighting is enabled.
Returns boolean
True if two-sided lighting is enabled
-
set twoSidedLighting(value: boolean): void
Sets whether two-sided lighting is enabled.
Parameters
- value: boolean
True to enable two-sided lighting
Returns void
- value: boolean
unlit
-
set unlit(value: boolean): void
Sets whether the OpenPBR material is unlit.
Parameters
- value: boolean
True to make the material unlit
Returns void
- value: boolean
use Alpha From Base Color Texture
-
get useAlphaFromBaseColorTexture(): boolean
Gets whether alpha is used from the base color texture.
Returns boolean
True if alpha is used from the base color texture
-
set useAlphaFromBaseColorTexture(value: boolean): void
Sets whether to use alpha from the base color texture. Note: OpenPBR handles this differently through the baseColorTexture alpha channel.
Parameters
- value: boolean
True to use alpha from base color texture (handled automatically in OpenPBR)
Returns void
- value: boolean
use Metallic From Metallic Texture Blue
-
set useMetallicFromMetallicTextureBlue(value: boolean): void
Sets whether to use metalness from the metallic texture's blue channel.
Parameters
- value: boolean
True to use blue channel for metalness
Returns void
- value: boolean
use Roughness From Metallic Texture Green
-
set useRoughnessFromMetallicTextureGreen(value: boolean): void
Sets whether to use roughness from the metallic texture's green channel.
Parameters
- value: boolean
True to use green channel for roughness
Returns void
- value: boolean
volume Thickness
-
set volumeThickness(value: number): void
Sets the thickness factor.
Parameters
- value: number
The thickness value
Returns void
- value: number
volume Thickness Texture
-
set volumeThicknessTexture(value: Nullable<BaseTexture>): void
Sets the thickness texture.
Parameters
- value: Nullable<BaseTexture>
The thickness texture or null
Returns void
- value: Nullable<BaseTexture>
Methods
configure Coat
-
Configures coat parameters for OpenPBR material. OpenPBR coat is already built-in, so no configuration is needed.
Returns void
configure Fuzz
-
Configures fuzz for OpenPBR. Enables fuzz and sets up proper configuration.
Returns void
configure Gltf Style Anisotropy
-
Configures glTF-style anisotropy for the OpenPBR material.
Parameters
- useGltfStyle: boolean = true
Whether to use glTF-style anisotropy
Returns void
- useGltfStyle: boolean = true
configure Specular Glossiness
-
Enable the specular/glossiness workflow and disable metallic/roughness.
Returns void
configure Subsurface
-
Configures subsurface properties for PBR material
Returns void
configure Transmission
-
Configures transmission for OpenPBR material.
Returns void
configure Volume
-
Configures volume properties for OpenPBR material.
Returns void
enable Specular Edge Color
-
Configures specular properties for OpenPBR material.
Parameters
- _enableEdgeColor: boolean = false
Whether to enable edge color support (ignored for OpenPBR)
Returns void
- _enableEdgeColor: boolean = false
finalize Async
-
Finalizes material properties after all loading is complete.
Parameters
- loader: GLTFLoader
The glTF loader;
loader._disposedis polled between texture passes to bail early on dispose.
Returns Promise<void>
- loader: GLTFLoader
is Translucent
-
Does this material have a translucent surface (i.e. either transmission or subsurface)?
Returns boolean
True if the material is translucent, false otherwise
set Normal Map Inversions
-
Sets the normal map inversions for the OpenPBR material. Note: OpenPBR may handle normal map inversions differently or may not need them.
Parameters
- invertX: boolean
Whether to invert the normal map on the X axis (may be ignored)
- invertY: boolean
Whether to invert the normal map on the Y axis (may be ignored)
Returns void
- invertX: boolean
Material Loading Adapter for OpenPBR materials that provides a unified OpenPBR-like interface.