Version: Unity 6.3 Beta (6000.3)
LanguageEnglish
  • C#

RayTracingMultiGeometryInstanceConfig

struct in UnityEngine.Rendering

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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

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.

Additional resources: RayTracingAccelerationStructure.AddInstancesIndirect, RayTracingSubGeometryDesc.

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 vertexBuffer.
vertexBufferThe vertex buffer that Unity uses to define geometries used by ray tracing instances.