Basic Shader Nodes

Hello!

I’ve commited a bunch of generic Shader Nodes which I think others will find useful (and really a necessity to get anywhere with shader creation using Shader Nodes).

Common:
Color Add - Adding two colors together.
Color Splitter - Split up the color into its RGBA channels.
ColorToGrey - Get the greyscale from a color
ConstructColor - Create a color (or vec4) from the components

Math:
AddVec2 - Add up two Vec2 (or tex coords)
ConstructVec2 - Create a vec2
ConstructVec3 - Create a vec3
Mult - Multiply two values
MultVec2 - Multiply two vec2
MultVec3 - Multiply two vec3
OneMinus - Returns (1 - value)
Pow - Returns power of factor of a value

2 Likes