+16
Completed

Compile for Mobile or Per Node Precision flags

Brighton Gardiner 11 years ago updated by Rubén Garcia 10 years ago 3
A lot of mobile shader optimizations come from using halfs instead of floats.
It's possible to open the SF shader and perform these edits by hand, but that becomes problematic to iterate.
It would be nice if we could flag per node "use half", or if there was a better global option.

Answer

Answer
Completed
This has now been implemented in RC 0.37 :)
You can now enable variable precision and name control in the settings menu, to pop up this extra panel on all nodes that will define a variable.

Answer
Completed
This has now been implemented in RC 0.37 :)
You can now enable variable precision and name control in the settings menu, to pop up this extra panel on all nodes that will define a variable.

Thank you very much for this implementation.
Now "Shader Forge" is one step further to be quite acceptable in mobile platforms without writing code! Amazing! This could be better than UE4 material system :D