Last edited by zorg on Fri Dec 16, 2016 3:51 pm, edited 1 time in total.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
holy shit didnt expect that many answers alright so I see it's a lot more complicated than i thought. I dont really want to merge multiple shaders into one because then I'd need a crazy big amount of shaders for all possible combinations. Ill look at the examples you posted and try to come up with something. ty for the help, appreciate it
Netcode wrote:holy shit didnt expect that many answers alright so I see it's a lot more complicated than i thought. I dont really want to merge multiple shaders into one because then I'd need a crazy big amount of shaders for all possible combinations. Ill look at the examples you posted and try to come up with something. ty for the help, appreciate it
You could dynamically combine them depending on the current needs; if you write the shader code just right, a simple string concatenation and creating one new shader is all it takes... probably. You most certainly don't need to create all combinations beforehand.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.