View Single Post
Old 15th June 2014, 16:03   #94  |  Link
Shiandow
Registered User
 
Join Date: Dec 2013
Posts: 753
Quote:
Originally Posted by FireFreak111 View Post
On another note, is it possible to combine the first two shaders, considering there's only a one line difference between them? Functions possibly?
The second shader needs the results of the first one so it's not really easy to do it in just one shader. It would be possible to split them in a slightly different way but I think it will obfuscate the code and it will only be faster because I haven't found a way to make the shader skip processing for a particular pixel.
Shiandow is offline   Reply With Quote