pistolshrimpgames / ProceduralPlanet

Procedural planets with Three.js
Do What The F*ck You Want To Public License
7 stars 4 forks source link

Added temperature map for ice planets and stuff #16

Closed SlightlyIntelligentMonkey closed 1 year ago

SlightlyIntelligentMonkey commented 1 year ago

Added in a shader and code for generating a temperature map, which then determines where ice will be drawn (just pure white). More complicated behavior could be added for better looking ice and a silly bug I'm unable to fix could be fixed (the shader uniform for the threshold for when a pixel is ice seems to be unable to be set properly). Also made the roughness of land and water shader uniforms for more control, don't know how useful that'll be.