Skip to content

Commit

Permalink
reduced correlation between mandelbulbs
Browse files Browse the repository at this point in the history
  • Loading branch information
BarthPaleologue committed Sep 20, 2023
1 parent 4e1d48b commit 1218bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/model/starSystemModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class StarSystemModel {
}

public getBodyTypeOfPlanet(index: number) {
if(uniformRandBool(0.05, this.rng, GENERATION_STEPS.CHOOSE_PLANET_TYPE + index + 10)) return BODY_TYPE.MANDELBULB;
if (uniformRandBool(0.05, this.rng, GENERATION_STEPS.CHOOSE_PLANET_TYPE + (index + 20) * 50)) return BODY_TYPE.MANDELBULB;
if (uniformRandBool(0.5, this.rng, GENERATION_STEPS.CHOOSE_PLANET_TYPE + index)) return BODY_TYPE.TELLURIC;
return BODY_TYPE.GAS;
}
Expand Down

0 comments on commit 1218bbb

Please sign in to comment.