Version: 2023.2

RayTracingGeometryInstanceConfig

struct in UnityEngine.Rendering

切换到手册

描述

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.

变量

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.
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.
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.
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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961