While implementing the glass model example on , I realize it have no cubemap textures yet, so I added a `sampleEquirect()` to lygia.xyz that let you treat a common equirectangular 2D texture as a cubemap

Follow

Here is the code for the full example it use the castRay function from the raymarching folder to fake the skybox. The LOD it’s also fake by offsetting the sample with some noise and averaging it together github.com/patriciogonzalezviv

Sign in to participate in the conversation
Merveilles

Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them.