Implementing switch for image based lighting

This commit is contained in:
2025-07-12 15:50:04 +02:00
parent 106dfe0423
commit d81ea5f8e5
6 changed files with 44 additions and 33 deletions
@@ -12,6 +12,7 @@
#include "Material/MaterialInstance.h"
#include "Math/Matrix.h"
#include "Math/Vector.h"
#include "MinimalEngine.h"
using namespace Seele;
@@ -148,6 +149,7 @@ void BasePass::render() {
Gfx::ShaderPermutation permutation = graphics->getShaderCompiler()->getTemplate("BasePass");
permutation.setDepthCulling(true); // always use the culling info
permutation.setPositionOnly(false);
permutation.setImageBasedLighting(getGlobals().useImagebasedLighting);
// Base Rendering
for (VertexData* vertexData : VertexData::getList()) {
transparentData.addAll(vertexData->getTransparentData());