Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RayTracingMultiGeometryInstanceConfig

Parameters you can use to configure ray tracing instances that are part of a RayTracingAccelerationStructure.
Read time 2 minutesLast updated 6 days ago

Definition

public struct RayTracingMultiGeometryInstanceConfig

Remarks

The geometries used by the ray tracing instances are specified using shared GraphicsBuffers containing vertex and index data and additional parameters.
Refer to the RayTracingAccelerationStructure.AddInstancesIndirect method for additional information regarding how to specify ray tracing instances that reference geometries and materials from this configuration structure.

Properties

Property

Description

accelerationStructureBuildFlagsThe flags Unity uses when it builds the acceleration structures for the geometries referenced by this ray tracing instance configuration.
accelerationStructureBuildFlagsOverrideWhether to override the build flags specified when creating a RayTracingAccelerationStructure.
enableTriangleCullingWhether front/back face culling for the ray tracing instances is enabled.
frontTriangleCounterClockwiseWhether to flip the way triangles face in the geometries reference by ray tracing instances.
indexBufferThe index buffer that Unity uses to define geometries used by ray tracing instances.
layerThe layer used by the ray tracing instances.
maskThe mask used by ray tracing instances.
materialPropertiesAdditional material properties to apply onto materials.
materialsThe materials the ray tracing instances use.
motionVectorModeMotion vector mode.
rayTracingModeThe RayTracingMode that you can use to control how the geometries used by ray tracing instances are updated.
renderingLayerMaskA mask that you can access in HLSL with
unity_RenderingLayer
built-in shader uniform.
subGeometriesThe geometry configurations the ray tracing instances use.
subGeometriesValidationWhether to validate the entries in the
subGeometries
array relative to
vertexBuffer
and
indexBuffer
buffers.
vertexAttributesAn array of vertex attributes that define the vertex format of RayTracingMultiGeometryInstanceConfig.vertexBuffer.
vertexBufferThe vertex buffer that Unity uses to define geometries used by ray tracing instances.