Version: 2017.1
Experimental: this API is experimental and might be changed or removed in the future.

InputFilter

struct in UnityEngine.Experimental.Rendering

切换到手册

描述

Describes which subset of visible objects to render.

RenderLoop.DrawRenderers can render subset of visible objects via DrawRendererSettings.inputFilter value. Objects can be filtered by their material's render queue and game object's layer.

See Also: RenderLoop.DrawRenderers, DrawRendererSettings.inputFilter.

变量

layerMask仅渲染给定层遮罩中的对象。
renderQueueMaxRender objects that have material render queue smaller or equal to this.
renderQueueMinRender objects that have material render queue larger or equal to this.

公共函数

SetQueuesOpaqueSet to render only opaque objects.
SetQueuesTransparentSet to render only transparent objects.

静态函数

DefaultDefault input filter: render all objects.