Glowstick0017 / Little-Plane-Project

Flying through a procedural web world
https://glowstick.me/tlpp/
MIT License
111 stars 36 forks source link

solved the scaling issue when going up/down #45

Closed theDRB123 closed 1 year ago

theDRB123 commented 1 year ago

The problem appeared to be complex , but was solved by just changing how the combination of PosX and x changes , depending on the heightfromground ,

changes :

PosX doesn't need to scale with changing height so it is fixed ,

the x is replaced by x-width/2 , and y is replaced with y - height/2 to bring the origin of scaling from upper left corner to the center

Glowstick0017 commented 1 year ago

@theDRB123 is it possible for you to merge master into your branch, master has the modified Perlin call to fix the color change issue.

Glowstick0017 commented 1 year ago

refer to https://github.com/Glowstick0017/Little-Plane-Project/pull/44/commits/a2e1e9c532058e8d605576e1798036ea913b6d48 to see the changes made