Boat Attack使用了Universal RP的许多新图形功能,可以用于探索 Universal RP 的使用方式和技巧。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

852 B

Constant Node

Description

Defines a Vector 1 of a mathematical constant value in the shader.

Ports

Name Direction Type Binding Description
Out Output Vector 1 None Output value

Controls

Name Type Options Description
Mode Dropdown PI, TAU, PHI, E, SQRT2 Sets output constant value

Generated Code Example

The following example code represents one possible outcome of this node per constant type.

PI

float _Constant_PI = 3.1415926;

TAU

float _Constant_TAU = 6.28318530;

PHI

float _Constant_PHI = 1.618034;

E

float _Constant_E = 2.718282;

SQRT2

float _Constant_SQRT2 = 1.414214;