One shader and conditions in it or several shaders for each case
Hello! There is a shader that draws geometry. And I need to add switches between (for example) normal mapping, texture mapping, and so on... How best to implement this? Add if conditions or create separate shaders for each case? Or is it better to combine?
from GameDev.net https://ift.tt/2UMUMtC
Hello! There is a shader that draws geometry. And I need to add switches between (for example) normal mapping, texture mapping, and so on... How best to implement this? Add if conditions or create separate shaders for each case? Or is it better to combine? https://ift.tt/eA8V8J September 08, 2019 at 10:08AM
from GameDev.net https://ift.tt/2UMUMtC
Hello! There is a shader that draws geometry. And I need to add switches between (for example) normal mapping, texture mapping, and so on... How best to implement this? Add if conditions or create separate shaders for each case? Or is it better to combine? https://ift.tt/eA8V8J September 08, 2019 at 10:08AM
ليست هناك تعليقات