Facepunch / sbox-issues

176 stars 12 forks source link

Shader Graph nodes request #3538

Open REDxEYE opened 1 year ago

REDxEYE commented 1 year ago

For?

Other

What can't you do?

Arctan2, arcsin, arccos and etc. "Hue saturation value" node like in blender material nodes. Height/bump to normal nodes

Maybe normal map mixing node like here https://www.youtube.com/watch?v=S9sz00l3FqQ

How would you like it to work?

Generic math node with dropdown to select math operation. Add/sub/mul and etc can be merged into it

Hue saturation value should not clamp values

Heigh/bump to normal should work like in blender/your 3d editor

What have you tried?

-//-

Additional context

The ability to correctly mix normals will be very useful in tiled detail layers. If possible add a mix in strength to control how much of the detail normal is added to input normal

Jammie3d commented 1 year ago

The normal mixing node would be very useful for adding detail normals to a shader, it's pretty common in games for large rocks to have a 0-1 baked normal map and then a tiling detail normal on top for when you get up close.

aylaylay commented 1 year ago

Added Arctan2, Arcsin and Arccos