DarkRadiant: master e52ceae8
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
orbweaver | orbweaver | master | 12.02.2021 20:18 | master b8dbc7d0 |
Changeset | Add test for light wireframe shader Since the Shader interface doesn't expose very much information that can be examined in tests, the shader system now attaches an internal dummy Material to any shader which doesn't have a Material of its own. Currently this internal Material only exposes the name used to construct the shader, and it is this which is tested to confirm that the light wireframe shader matches the editor_color value. In order to make it easier to construct this new InternalMaterial class, all public virtuals on the Material interface are now non-pure, with empty default implementations. This in turn required a couple of method signatures to be changed to return by value rather than by const reference. |
|||
mod - include/ieclasscolours.h | Diff File | |||
mod - include/ishaders.h | Diff File | |||
mod - libs/wxutil/preview/GuiRenderer.cpp | Diff File | |||
mod - radiantcore/eclass/EClassColourManager.cpp | Diff File | |||
mod - radiantcore/eclass/EClassColourManager.h | Diff File | |||
mod - radiantcore/eclass/EClassManager.cpp | Diff File | |||
mod - radiantcore/model/export/WavefrontExporter.cpp | Diff File | |||
mod - radiantcore/rendersystem/backend/OpenGLShader.cpp | Diff File | |||
mod - radiantcore/shaders/CShader.cpp | Diff File | |||
mod - radiantcore/shaders/CShader.h | Diff File | |||
mod - test/Entity.cpp | Diff File | |||
mod - test/Materials.cpp | Diff File |