07-19-2013, 01:14 PM
Working with the shaders of Darkplaces/Xonotic I got a few issues. Like that you don't declare all the textures inside the shader itself, rather it is automated to look for filename appendixes like _norm, _gloss; etc.
This might seem initially convenient but it means also that you're wasting a lot of VRAM as you will end up using quite a lot duplicate textures for normalmaps and glossmaps.
Noe I found a parameter in the wiki for defining the normalmap by different name,
qer_normalImage texture: sets the normal map for bump mapping
Problem is that I can't seem to get it to work. Also, it's prefixed by qer_ wich suggests it's only used in the actual editor, aka define the normalmap for use during texture baking.
It's a bit confusing to be honest. But if anyone could shed some light on this issue, I would be greatful.[/size]
This might seem initially convenient but it means also that you're wasting a lot of VRAM as you will end up using quite a lot duplicate textures for normalmaps and glossmaps.
Noe I found a parameter in the wiki for defining the normalmap by different name,
qer_normalImage texture: sets the normal map for bump mapping
Problem is that I can't seem to get it to work. Also, it's prefixed by qer_ wich suggests it's only used in the actual editor, aka define the normalmap for use during texture baking.
It's a bit confusing to be honest. But if anyone could shed some light on this issue, I would be greatful.[/size]