RayTracingMeshInstanceConfig

struct in UnityEngine.Rendering

/

Implemented in:UnityEngine.CoreModule

Description

Parameters you can use to configure ray tracing Mesh instances that are part of a RayTracingAccelerationStructure.

This structure groups common parameters between different ray tracing instances.

Additional resources: RayTracingAccelerationStructure.AddInstance, RayTracingAccelerationStructure.AddInstances.

Properties

accelerationStructureBuildFlagsThe flags Unity uses when it builds the acceleration structure for the geometry referenced by this ray tracing instance configuration.
accelerationStructureBuildFlagsOverrideWhether to override the build flags specified when creating a RayTracingAccelerationStructure.
enableTriangleCullingWhether front/back face culling for this ray tracing instance is enabled.
frontTriangleCounterClockwiseWhether to flip the way triangles face in this ray tracing instance.
layerThe Layer used by the ray tracing instance.
lightProbeProxyVolumeThe LightProbeProxyVolume the ray tracing instance uses.
lightProbeUsageThe Light probe interpolation type for this instance.
maskThe ray tracing instance mask.
materialThe material the ray tracing instance uses.
materialPropertiesAdditional material properties to apply onto material.
meshThe mesh to add to a RayTracingAccelerationStructure.
motionVectorModeMotion vector mode.
rayTracingModeThe RayTracingMode that you can use to control how the geometry associated with a mesh ray tracing instance is updated.
renderingLayerMaskA mask that you can access in HLSL with unity_RenderingLayer built-in shader uniform.
subMeshFlagsFlags that determine how rays intersect the geometry for each sub-mesh relative to material type during ray tracing.
subMeshIndexThe index of a sub-mesh when the mesh contains multiple sub-meshes.

Did you find this page useful? Please give it a rating: