用材质渲染通道绘制对象 (Draw Objects With Material Render Pass) 允许您使用特定材质渲染 场景 (Scene) 节点中的节点。 例如,使用用材质渲染通道绘制对象 (Draw Objects With Material Render Pass) 创建不同的渲染模式。请参阅创建夜视模式。
In the 素材库 (Library)按下 Alt 并右键点击渲染 (Rendering), and select Compose and Blit Pass. Compose and Blit Pass template contains the render pass structure that enables you to blit to the screen 合成目标渲染通道 (Composition Target Render Pass) render passes or textures using a specific material. The template contains these render passes:
清除渲染通道 (Clear Render Pass) clears some or all of the buffers of the current render context. By default the 清除渲染通道 (Clear Render Pass) in the Compose and Blit Pass template clears the color buffer with transparent black color and the depth buffer with value 1. For example, to clear the color buffer with a different color, set the 清除颜色 (Clear Color) property to the color that you want to use as the background color of the content that Kanzi renders to the 合成目标渲染通道 (Composition Target Render Pass).
绘图对象渲染通道 (Draw Objects Render Pass) allows you to set a 摄像机 (Camera) node to render a specific object source and to control frustum culling. By default the 绘图对象渲染通道 (Draw Objects Render Pass) uses the default 摄像机 (Camera) node to render all nodes in a 场景 (Scene) node.
位块传送渲染通道 (Blit Render Pass) 使用某种特定材质在屏幕上位块传送一个或多个渲染通道或纹理。 By default this 位块传送渲染通道 (Blit Render Pass) draws on the screen the content rendered by the 合成目标渲染通道 (Composition Target Render Pass).
In the 素材库 (Library) select the Compose and Blit Pass > 合成目标渲染通道 (Composition Target Render Pass) > 清除渲染通道 (Clear Render Pass) and in the 属性 (Properties) set the 清除颜色 (Clear Color) property to the color that you want to use as the background color of the scene in the mirror.