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

952 B

Color Node

Description

Defines a constant Vector 4 value in the shader using a Color field. Can be converted to a Color type Property via the Node's context menu. The value of the Mode parameter will also respected when generating the Property.

Ports

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

Controls

Name Type Options Description
Color Defines the output value.
Mode Dropdown Default, HDR Sets properties of the Color field

Generated Code Example

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

float4 _Color = IsGammaSpace() ? float4(1, 2, 3, 4) : float4(SRGBToLinear(float3(1, 2, 3)), 4);