Version: 2023.1

RayTracingMeshInstanceConfig

struct in UnityEngine.Rendering

切换到手册

描述

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.

See Also: RayTracingAccelerationStructure.AddInstance, RayTracingAccelerationStructure.AddInstances.

变量

dynamicGeometryWhether Unity considers the geometry animated or not.
enableTriangleCullingWhether front/back face culling for this ray tracing instance is enabled.
frontTriangleCounterClockwiseWhether to flip the way triangles face in this ray tracing instance.
layer 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.
materialMaterial the ray tracing instance uses.
materialPropertiesAdditional Material properties to apply onto Material.
meshThe Mesh to add to a RayTracingAccelerationStructure.
motionVectorModeMotion vector mode.
renderingLayerMaskA mask that you can access in HLSL with unity_RenderingLayer built-in shader uniform.
subMeshFlagsFlags that determine the behavior of a sub-mesh in a RayTracingAccelerationStructure.
subMeshIndexThe index of a sub-mesh when the Mesh contains multiple sub-meshes.