您可以使用这些参数配置作为 RayTracingAccelerationStructure一部分的光线追踪三角形几何实例。
三角形几何体使用包含顶点和索引数据以及其他参数的 GraphicsBuffers 指定。
accelerationStructureBuildFlags | Unity 在构建此光线追踪实例配置引用的几何体的加速结构时使用的标志。 |
accelerationStructureBuildFlagsOverride | 是否覆盖创建 RayTracingAccelerationStructure 时指定的构建标志。 |
dynamicGeometry | Unity 是否将几何体视为动画。 |
enableTriangleCulling | 是否启用了此光线追踪实例的前/后面剔除。 |
frontTriangleCounterClockwise | 是否翻转此光线追踪实例中三角形的面向。 |
indexBuffer | Unity 用于定义光线追踪几何实例的索引缓冲区。 |
indexCount | 来自 indexBuffer 的定义此光线追踪几何实例的索引数量。 |
indexStart | 来自 indexBuffer 的定义此光线追踪几何实例的第一个索引。 |
layer | 光线追踪实例使用的图层。 |
lightProbeProxyVolume | 光线追踪实例使用的 LightProbeProxyVolume。 |
lightProbeUsage | 此实例的光探针插值类型。 |
mask | 光线追踪实例掩码。 |
material | 光线追踪实例使用的材质。 |
materialProperties | 要应用到材质的其他材质属性。 |
motionVectorMode | 运动矢量模式。 |
renderingLayerMask | 可以在 HLSL 中使用 unity_RenderingLayer 内置着色器统一变量访问的掩码。 |
subMeshFlags | 确定光线追踪期间相对于材质类型的光线-几何体相交行为的标志。 |
vertexAttributes | 定义 vertexBuffer 顶点格式的顶点属性数组。 |
vertexBuffer | Unity 用于定义光线追踪几何实例的顶点缓冲区。 |
vertexCount | 来自 vertexBuffer 的定义此光线追踪几何实例的顶点数。 |
vertexStart | 来自 vertexBuffer 的定义此光线追踪几何实例的第一个顶点的索引。 |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.