init
TypeScriptstatic initFloatLiteral(value: number): PhysicallyBasedMaterial_AnisotropyAngleSwift declarationinit(floatLiteral value: Float)Creates an anisotropy angle object from a single value. - Parameters: - value: The anisotropy angle.
struct · iOS 15.0+ · SDK 27.1
struct AnisotropyAngleAn object used to define a material’s anisotropy angle.
static initFloatLiteral(value: number): PhysicallyBasedMaterial_AnisotropyAngleSwift declarationinit(floatLiteral value: Float)Creates an anisotropy angle object from a single value. - Parameters: - value: The anisotropy angle.
static get textureSemantic(): TextureResource_SemanticSwift declarationstatic let textureSemantic: TextureResource.SemanticThe intended use of the object’s texture property.
static initScaleTexture(scale?: number, texture?: (MaterialParameters_Texture) | null): PhysicallyBasedMaterial_AnisotropyAngleSwift declarationinit(scale: Float = 1.0, texture: PhysicallyBasedMaterial.Texture? = nil)Creates an anisotropy angle object using a single value or a texture. This initializer allows you to create an instance using either a single value for the entire material, or a UV-mapped image. If you specify `texture`, RealityKit calculates the anisotropy angle for the entity by UV-mapping `texture` onto the entity and multiplying the value of each mapped pixel by `scale`. If you don’t specify `texture`, then RealityKit uses `scale` as the entire entity’s anisotropy angle. If you provide a color image for `texture` rather than a grayscale image, RealityKit only uses the intensity of the image’s red channel. - Parameters: - scale: The anisotropy angle value for the entire material. - texture: The anisotropy angle values as a UV-mapped image.
get scale(): numberSwift declarationvar scale: FloatThe anistropy angle specified as a single value.
set scale(value: number)Swift declarationvar scale: FloatThe anistropy angle specified as a single value.
get texture(): (MaterialParameters_Texture) | nullSwift declarationvar texture: PhysicallyBasedMaterial.Texture?The anisotropy angle values specified using a UV-mapped image.
set texture(value: (MaterialParameters_Texture) | null)Swift declarationvar texture: PhysicallyBasedMaterial.Texture?The anisotropy angle values specified using a UV-mapped image.
No declarations were skipped in this snapshot.