]> git.tdb.fi Git - libs/gl.git/commit
Overhaul texture management in rendering classes
authorMikko Rasa <tdb@tdb.fi>
Sun, 11 Apr 2021 20:25:18 +0000 (23:25 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 11 Apr 2021 20:32:57 +0000 (23:32 +0300)
commit6f39983060a27634c012f66c82fea0d09fea9774
treee91593ec1d6ce750b56590ae07689eaa71f77e48
parent3af09f06e9f69532e5adfe6bcd9a7b2d1aea6d5b
Overhaul texture management in rendering classes

Textures are now set based on the uniform name (tag) rather than texture
unit.  The Texturing class has been deprecated because it was making
things difficult when textures come from multiple sources, such as with
effects or decals.  RenderPass and Renderer now handle multiple textures
directly.

There's some compatibility code but things are likely to break.
27 files changed:
source/core/datatype.h
source/core/program.cpp
source/core/program.h
source/effects/ambientocclusion.cpp
source/effects/ambientocclusion.h
source/effects/bloom.cpp
source/effects/bloom.h
source/effects/colorcurve.cpp
source/effects/colorcurve.h
source/effects/environmentmap.cpp
source/effects/shadowmap.cpp
source/materials/basicmaterial.cpp
source/materials/basicmaterial.h
source/materials/material.cpp
source/materials/material.h
source/materials/pbrmaterial.cpp
source/materials/pbrmaterial.h
source/materials/renderpass.cpp
source/materials/renderpass.h
source/materials/technique.cpp
source/materials/unlitmaterial.cpp
source/materials/unlitmaterial.h
source/render/programdata.cpp
source/render/renderer.cpp
source/render/renderer.h
source/render/texturing.cpp
source/render/texturing.h