1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Cleanup shader generation code (#10663)

Shader generation is a mess. This commit cleans some parts up, including dropping remains of HLSL support which was never actually implemented.
This commit is contained in:
Vitaliy
2020-12-19 22:57:10 +03:00
committed by GitHub
parent 664f5ce960
commit ccbf8029ea
11 changed files with 157 additions and 377 deletions

View File

@@ -51,12 +51,8 @@ public:
~CAOShaderConstantSetter() override = default;
void onSetConstants(video::IMaterialRendererServices *services,
bool is_highlevel) override
void onSetConstants(video::IMaterialRendererServices *services) override
{
if (!is_highlevel)
return;
// Ambient color
video::SColorf emissive_color(m_emissive_color);