injectObjectId
beta
Assigns an arbitrary value to the objectId field of an SDF, which can later be extracted from rendered output.
This can be used to identify which object is shown at any given pixel in the output.
Parameters
| Name | Description | Regular Handling | Read-Only Handling |
|---|---|---|---|
Enable | |||
Object Id | Runtime | Baked |
Inputs
-
SDF: (required)- Coordinate Types:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
Sdf
- Coordinate Types:
-
ID Field: (optional)- Coordinate Types:
floatvec2vec3vec4 - Context Types:
ContextMaterialContextCameraContextLightContextRayContextParticleContextVertexContextPixelContext - Return Types:
float
- Coordinate Types: