Contents

PhysicallyBasedMaterial

A material that simulates the appearance of real-world objects.

Declaration

struct PhysicallyBasedMaterial

Mentioned in

Overview

In RealityKit, a material is an object that defines the surface properties of a rendered 3D object. A Physically Based Rendering (PBR) material is a material that closely approximates the way light reflects off of real-world objects. Use PhysicallyBasedMaterial to create highly realistic-looking objects for your AR scenes.

Many of the properties for PhysicallyBasedMaterial provide the option to use more than one type of data to specify that property. You can set an object’s baseColor using a specific color for the entire material, or you can use an image that UV-maps on to the entity.

PhysicallyBasedMaterial includes all material properties supported by USDZ. On iOS 15 and later, RealityKit automatically uses PhysicallyBasedMaterial when importing an entity from a USDZ file.

For more information on using PhysicallyBasedMaterial, see Applying realistic material and lighting effects to entities.

Topics

Creating a physically based material

Setting the core properties

Configuring transparency and highlights

Adding anisotropy

Adding light emission

Modifying texture coordinates

Culling unnecessary polygons

Setting depth testing properties

Setting shader properties

Classes

Structures

Instance Properties

Type Aliases

Enumerations

See Also

Realistic materials