Function enableMaterialUvTransform
-
Parameters
- material: Partial<PbrMaterialProps>
Returns boolean
-
Opt a PBR or Standard material into per-texture UV transforms ahead of need.
Call this before the first build for hand-created materials that use
uScale/vScale/uAng/uOffset/vOffset. Standard transforms are sampled when the renderable is built; later changes requirerebuildMaterial. PBR transforms can be refreshed withmarkMaterialUboDirty. glTF PBR materials are enabled automatically by the loader.Returns
truebefore the material's first build. Returnsfalseafter its feature set was compiled, when applying the opt-in requiresrebuildMaterial.Parameters
- material: StandardMaterialProps
Returns boolean
Opt a PBR or Standard material into per-texture UV transforms ahead of need.
Call this before the first build for hand-created materials that use
uScale/vScale/uAng/uOffset/vOffset. Standard transforms are sampled when the renderable is built; later changes requirerebuildMaterial. PBR transforms can be refreshed withmarkMaterialUboDirty. glTF PBR materials are enabled automatically by the loader.Returns
truebefore the material's first build. Returnsfalseafter its feature set was compiled, when applying the opt-in requiresrebuildMaterial.