Skip to content

Commit

Permalink
remove check for voxelbounce
Browse files Browse the repository at this point in the history
  • Loading branch information
e2002e committed Jan 16, 2024
1 parent 4b111ab commit aa24c4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/iron/data/ShaderData.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/iron/object/MeshObject.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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];
}
Expand Down

0 comments on commit aa24c4a

Please sign in to comment.