Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

Managing shaders for different models with different textures

$
0
0

I have a scene-manager which loads models from different files. Some models have textures like normal-map and specular-map some don't have one of which and some just have a diffuse (color) texture. As far as I noticed I need to generate different shader-programs to support all possible combinations. well I can do that but the problem is that when I want to to make a simple change in a shader's code (for example fragment-shader) I need to update all sources. So, I was wondering that  is there any better solution for this? Or I need to write a …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>