您可以用来配置作为 RayTracingAccelerationStructure 部分的射线追踪 Mesh 实例的参数。
此结构体将不同射线追踪实例之间的通用参数分组在一起。
其他资源: RayTracingAccelerationStructure.AddInstance,RayTracingAccelerationStructure.AddInstances。
accelerationStructureBuildFlags | Unity 在构建此射线追踪实例配置引用的几何体的加速结构时使用的标志。 |
accelerationStructureBuildFlagsOverride | 是否覆盖在创建 RayTracingAccelerationStructure 时指定的构建标志。 |
dynamicGeometry | Unity 是否将几何体视为动画。 |
enableTriangleCulling | 是否为此射线追踪实例启用正面/背面剔除。 |
frontTriangleCounterClockwise | 是否翻转此射线追踪实例中三角形的朝向。 |
layer | 射线追踪实例使用的图层。 |
lightProbeProxyVolume | 射线追踪实例使用的 LightProbeProxyVolume。 |
lightProbeUsage | 此实例的光探针插值类型。 |
mask | 射线追踪实例掩码。 |
material | 射线追踪实例使用的材质。 |
materialProperties | 要应用于材质的附加材质属性。 |
mesh | 要添加到 RayTracingAccelerationStructure 的网格。 |
motionVectorMode | 运动向量模式。 |
renderingLayerMask | 您可以在 HLSL 中使用 unity_RenderingLayer 内置着色器统一变量访问的掩码。 |
subMeshFlags | 确定射线在射线追踪期间相对于材质类型如何与每个子网格的几何体相交的标志。 |
subMeshIndex | 当网格包含多个子网格时,子网格的索引。 |
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.