Ref Shader


The Ref Shader node is intended to use certain properties of a shader in another material or texture setups as a reference.
Ref Shader 节点旨在使用其他材质或纹理设置中着色器的某些属性作为参考。

Refshader 【参照着色器】 - 图1

HOW TO USE

如何使用
This example shows three bottles; each of these bottles have different colors but the bottle bodies use the same noise setup, which is accomplished with the Ref Shader. In the setup below, the Noise texture from the large bottle is linked to the two small bottles. Every change made to the main Noise also affects the noise in the small bottles. The big bottle setup is the driver. For the similar setup in other small bottles, you can simply plug the main noise from the big bottle to the small bottles. To do this just drag and drop the “Main Noise” from the big bottle to the small bottles’ Ref shader’s link slot in the “Mix texture”. You need to do this action from the Cinema 4D Material Editor, as there is no way to to this from the Node Editor. Download the scene from this link
这个例子显示了三个瓶子; 每个瓶子有不同的颜色,但瓶体使用相同的噪音设置,这是完成与参考着色器。在下面的设置中,噪音纹理从大瓶子连接到两个小瓶子。主噪音的每一个改变也会影响小瓶子的噪音。大瓶装设备是驱动程序。对于类似的设置在其他小瓶子,你可以简单地塞从大瓶子到小瓶子的主要噪音。要做到这一点,只需拖放“主要噪音”从大瓶子到小瓶子的参考着色器的链接槽在“混合纹理”。你需要从影院4d 材质编辑器做这个动作,因为没有办法从节点编辑器这样做。从这个链接下载场景

Refshader 【参照着色器】 - 图2