textureSemantic
TypeScriptstatic get textureSemantic(): TextureResource_SemanticSwift declarationstatic let textureSemantic: TextureResource.SemanticThe intended use of the object’s texture property.
struct · iOS 15.0+ · SDK 27.1
struct NormalAn object that specifies an entity’s normal map. The `normal` property of a RealityKit entity holds an optional _normal map_, which stores fine details about the entity’s surface, using a texture rather than increasing the number of polygons in the model. If you provide a normal map, RealityKit uses the vectors from that normal map when rendering the entity, resulting in greater detail and more accurate highlights, shadows, and reflections.
static get textureSemantic(): TextureResource_SemanticSwift declarationstatic let textureSemantic: TextureResource.SemanticThe intended use of the object’s texture property.
get texture(): (MaterialParameters_Texture) | nullSwift declarationvar texture: PhysicallyBasedMaterial.Texture?The material’s normal map.
set texture(value: (MaterialParameters_Texture) | null)Swift declarationvar texture: PhysicallyBasedMaterial.Texture?The material’s normal map.
static initTexture(texture?: (MaterialParameters_Texture) | null): PhysicallyBasedMaterial_NormalSwift declarationinit(texture: PhysicallyBasedMaterial.Texture? = nil)Creates an object from a specified texture. - Parameters: - texture: The image’s texture.
static init(value: CustomMaterial_Normal): PhysicallyBasedMaterial_NormalSwift declarationinit(_ value: CustomMaterial.Normal)Creates a normal object from a custom material’s normal property. - Parameters: - value: The `normal` object from a `CustomMaterial`.
No declarations were skipped in this snapshot.