【发布时间】:2017-04-20 17:53:28
【问题描述】:
我目前正在尝试使用 CommandBuffers 来使用 CommandBuffer.DrawProcedural 为我的几何体渲染灯光和阴影,但仅当渲染的对象与这个新的 ShadowMask 重叠时才有效。
Here is you can see the masking effect
And this is the Shadowmask Buffer
所以我想我的问题是,Unity 是否有办法使用 CommandBuffer 渲染到该掩码中,还是我只是在我的游戏世界中放置一个网格立方体?
【问题讨论】:
-
我忘了提到那个小矮人是程序绘制的网格,而绿色和灰色框是传统的统一网格。
-
这似乎是由于内置延迟着色器中的模板操作造成的,如果我找到答案,我会在这里发布。
标签: unity3d rendering unity5 shadow