Camera Shader

相机着色器

Basic 基础Shader 着色器

Camera Shader

相机着色器

The shader grabs a camera view that can then be projected onto any object. At the bottom right is an example of a feedback effect (camera views the canvas). 着色器抓取一个相机视图,然后可以投射到任何对象上。在右下角是一个反馈效果的例子(相机视图画布)

Define a camera in the Camera Shader whose rendered view should be used as a texture. One effect that can be achieved is a feedback effect when the camera is aimed at the object on which the Camera Shader material lies (as with all other reflection effects, the Ray Depth parameter is used to define the number of repetitions).

在 Camera Shader 中定义一个相机,其渲染的视图应该用作纹理。当相机瞄准相机材质所在的物体时,可以达到的一个效果是反馈效果(与所有其他反射效果一样,使用光线深度参数来定义重复次数)。

Also, multiple views of an object can be easily created in a single rendered image. Simply create several cameras and project each one’s view onto an element within the scene, e.g., a Plane Object, a Foreground Object or a Background Object.

此外,一个对象的多个视图可以很容易地在一个渲染图像中创建。简单地创建几个摄像机并将每个摄像机的视图投影到场景中的一个元素上,例如,一个平面物体,一个前景物体或者一个背景物体。

Several views can be incorporated into a single rendering. The top two views are layers with a Camera Shader assigned. 多个视图可以合并到一个渲染中。顶部的两个视图是分配了相机着色器的图层