godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.92k stars 21.06k forks source link

ShaderGraph dont have if statement. #2530

Closed sezit closed 9 years ago

sezit commented 9 years ago

I cant find in shader graph if statement. It's missing or just disabled because that is rarely used?

bojidar-bg commented 9 years ago

@sezit ~ I don't think shaders have an IF statement at all.... The best you can do is use an approximation of the Heaviside step function.

sezit commented 9 years ago

Thank, i new in shaders.