One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

PhysicallyBasedMaterial.Normal

struct · iOS 15.0+ · SDK 27.1

struct Normal

An 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.

Members (5)

get · iOS 15.0+

textureSemantic

TypeScript
static get textureSemantic(): TextureResource_Semantic
Swift declaration
static let textureSemantic: TextureResource.Semantic

The intended use of the object’s texture property.

get · iOS 15.0+

texture

TypeScript
get texture(): (MaterialParameters_Texture) | null
Swift declaration
var texture: PhysicallyBasedMaterial.Texture?

The material’s normal map.

set · iOS 15.0+

texture

TypeScript
set texture(value: (MaterialParameters_Texture) | null)
Swift declaration
var texture: PhysicallyBasedMaterial.Texture?

The material’s normal map.

init · iOS 15.0+

init

TypeScript
static initTexture(texture?: (MaterialParameters_Texture) | null): PhysicallyBasedMaterial_Normal
Swift declaration
init(texture: PhysicallyBasedMaterial.Texture? = nil)

Creates an object from a specified texture. - Parameters: - texture: The image’s texture.

init · iOS 15.0+

init

TypeScript
static init(value: CustomMaterial_Normal): PhysicallyBasedMaterial_Normal
Swift declaration
init(_ value: CustomMaterial.Normal)

Creates a normal object from a custom material’s normal property. - Parameters: - value: The `normal` object from a `CustomMaterial`.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →