Generate Sky & Sun in Ray Marching algorithm is very simple to process. When the map procedure don’t intersect a scene obiect (In my shader Hit variable is false) gl_FragColor set to background color. Is simple way to create it: First define te Sun structure: struct Sun { vec3 posistion; vec3 color; float haloSize; float […]