Skip to content

Commit

Permalink
Fix ShiftNoise calculation bug (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
megazyz authored Oct 15, 2024
1 parent 9c491e8 commit 1486275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worldgen/DensityFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ export namespace DensityFunction {
super()
}
public compute(context: Context) {
return this.offsetNoise?.sample(context.x * 0.25, context.y * 0.25, context.z * 0.25) ?? 0
return (this.offsetNoise?.sample(context.x * 0.25, context.y * 0.25, context.z * 0.25) ?? 0) * 4
}
public maxValue() {
return (this.offsetNoise?.maxValue ?? 2) * 4
Expand Down

0 comments on commit 1486275

Please sign in to comment.