diff --git a/Sources/iron/data/ShaderData.hx b/Sources/iron/data/ShaderData.hx index df34d6b6..ac42101f 100644 --- a/Sources/iron/data/ShaderData.hx +++ b/Sources/iron/data/ShaderData.hx @@ -81,7 +81,7 @@ class ShaderContext { public function new(raw: TShaderContext, done: ShaderContext->Void, overrideContext: TShaderOverride = null) { this.raw = raw; #if (rp_voxels == "Off") - if (raw.name == "voxel" || raw.name == "voxelbounce") { + if (raw.name == "voxel") { done(this); return; } diff --git a/Sources/iron/object/MeshObject.hx b/Sources/iron/object/MeshObject.hx index d97b6ef5..15f1ed26 100644 --- a/Sources/iron/object/MeshObject.hx +++ b/Sources/iron/object/MeshObject.hx @@ -181,7 +181,7 @@ class MeshObject extends Object { // particleSystems for update, particleOwner for render if (particleSystems != null || particleOwner != null) radiusScale *= 1000; #end - if (context == "voxel" || context == "voxelbounce") radiusScale *= 100; + if (context == "voxel") radiusScale *= 100; if (data.geom.instanced) radiusScale *= 100; var isShadow = context == "shadowmap"; var frustumPlanes = isShadow ? light.frustumPlanes : camera.frustumPlanes; @@ -266,7 +266,7 @@ class MeshObject extends Object { if (raw != null && raw.lods != null && raw.lods.length > 0) { computeScreenSize(Scene.active.camera); initLods(); - if (context == "voxel" || context == "voxelbounce") { + if (context == "voxel") { // Voxelize using the lowest lod lod = cast lods[lods.length - 1]; }