For my first drop on the new fxhash v1.0 I wanted to make something different. So I challenged myself to write a raymarcher like the ones I use in my shaders but in p5.js and make a fully procedural scene with it. It's a bit tricky to work with vectors once you are used to GLSL, but I managed to write a decent algorithm that scans a grid and slowly draws the image. It draws it with circles and triangles for the grass. The first thing I used for testing was a SDF of a plane with some tall bars on it. Then I was trying different distortions on the shapes and in one moment the results gave me the idea of a scene with mushrooms and grass on an undulated terrain. Later I added a small river and a cloudy sky. I think I was inadvertently inspired by some children's books I had when I was a kid.
Best viewed full screen.
Features:
Mood: happy - normal - melancholic - strange - sleepy Mushrooms: 2 - 4 (sometimes one of the mushrooms can only be seen on full screen) Mushroom height: short - medium - tall Mushroom fatness: S - M - L - XL Mushroom shape: 1 - 2 - 3- 4 - 5 Mushroom tilt Flowers color: white - yellow - pink - cyan - multicolor River: yes - no Camera orientation: north - south