Formula Shader 方程式着色器Basic 基础Shader 着色器

Shader Properties

Expression

表情

Enter a formula in this field. Valid variables are (open the Variables menu):

在此字段中输入公式。有效变量如下(打开“变量”菜单) :

U, V, W: The UVW coordinates

U,v,w: UVW 坐标

X, Y, Z: The spatial coordinates

X,y,z: 空间坐标

t: Time in seconds

T: 以秒为单位的时间

User Data: User Data that you define (in the following example: Factor)

User Data: 您定义的用户数据(在以下示例中为 Factor)

As always, the formulas in the Attachment are valid for all numeric fields; for users with more pronounced math skills, these can be used to create a wide range of effects.

像往常一样,附件中的公式对所有数字字段都有效; 对于具有更显著数学技能的用户,可以使用这些公式创建范围广泛的效果。

3 formulas and their respective results in the Formula shader, at center using User Data. At right is a random white noise. 3个公式和他们各自的结果在公式着色器,在中心使用用户数据。右边是一个随机的白噪声

Use Global Coordinates

使用全局坐标

At left enabled, at right disabled 左边启用,右边禁用Use Global Coordinates 使用全局坐标 option. Formula used: 选项。配方使用:sin((x*y)*0.1) Sin ((x * y) * 0.1).

If you use position coordinates within the formula you can switch between the local (option disabled and the coordinate system of the object to which the material is assigned will be used) and global coordinate systems.

如果你在公式中使用位置坐标,你可以在局部坐标系和全局坐标系之间进行切换(禁用选项,并使用物体的坐标系)。

Variables

变量

u,v,w - UVW Map Coordinates
x,y,z - Shading Point Coordinates
t - Time (in seconds)

U,v,w-UVW 地图坐标系,y,z-着色点坐标 t- 时间(秒)