You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to avoid if's and switch's which might make the shader's faster. Might require a shader redesign.
Ideally, there's no logic in the shader, just computation.
[ 1 ] — What should remain as a uniform
[ 2 ] — fragment shader shouldn't "choose" what to do, it should just compute the output color
[ 3 ] — User chooses what to do via GUI
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The idea is to avoid if's and switch's which might make the shader's faster. Might require a shader redesign.
Ideally, there's no logic in the shader, just computation.
Beta Was this translation helpful? Give feedback.
All reactions