API reference
API reference
Select your platform
No SDKs available
No versions available

SceneMaterialDataType Enum

Defines the data types that can be used as attributes in custom shaders.
These types correspond to the attribute types supported by the underlying rendering system and are used when creating custom materials.
Learn more about custom shaders in Meta Spatial SDK here.

Signature

enum SceneMaterialDataType : Enum<SceneMaterialDataType> 

Enumeration Constants

MemberDescription
Vector4
Represents a 4-component vector (x, y, z, w) that can be used for colors, positions, or any other vector data in shaders
Texture2D
Represents a 2D texture backed by a SceneTexture that can be sampled in shaders

Properties

id : Int
[Get][Set]
The internal ID used to identify this data type in the native code
Signature
var id: Int
Did you find this page helpful?
Thumbs up icon
Thumbs down icon