Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

RayTracingGeometryInstanceConfig

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 triangle geometry instances that are part of a RayTracingAccelerationStructure.

The triangle geometry is specified using GraphicsBuffers containing vertex and index data and additional parameters.

Additional resources: RayTracingAccelerationStructure.AddInstance, RayTracingAccelerationStructure.AddInstancesIndirect.

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.
indexBufferThe index buffer that Unity uses to define the ray tracing geometry instance.
indexCountThe amount of indices from indexBuffer that defines this ray tracing geometry instance.
indexStartThe first index from indexBuffer that defines this ray tracing geometry 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.
motionVectorModeMotion vector mode.
rayTracingModeThe RayTracingMode that you can use to control how the geometry associated with a ray tracing instance is updated.
renderingLayerMaskA mask that you can access in HLSL with unity_RenderingLayer built-in shader uniform.
subMeshFlagsFlags that determine the ray-geometry intersection behavior relative to material type during ray tracing.
vertexAttributesAn array of vertex attributes that define the vertex format of vertexBuffer.
vertexBufferThe vertex buffer that Unity uses to define the ray tracing geometry instance.
vertexCountThe amount of vertices from vertexBuffer that defines this ray tracing geometry instance.
vertexStartThe index of the first vertex from vertexBuffer that defines this ray tracing geometry instance.