Nothing special, just tryin' OpenGL. Get in touch if you can draw Pixel Art Graphics / Sprites.
Graphics looks like it was painted by a 3-years old.
←decrease layer scroll speed→increase layer scroll speed
Everything below i.e. godrays was generated by Github Copilot. Due to the lack of GLSL shader programming knowledge, reviewing the godray framebuffer fragment shader for correctness and performance was basically a coin flip.
Ptoggles particles on/off.
The fullscreen framebuffer pass now includes a pixel-art friendly moon godrays effect.
Gtoggles godrays on/off.Mswitches source mode:Moon sprite source(uses configured screen-space light source positions)Directional off-screen source(uses a normalized moonlight direction)
Btoggles debug mask visualization (shows the sampled occlusion mask).
In moon sprite mode, multiple emitters can be configured (moon + stars) via
Framebuffer::AddGodraysLightSource(...).
For performance, sprite mode processes up to 4 emitters per pixel and shares the sample budget across them.
Godrays parameters live in Framebuffer.hpp inside GodraysParameters:
Intensity: overall contribution of raysExposure: final post-exposure multiplierDecay: attenuation per sample along ray marchDensity: how far each sample step travels toward sourceWeight: per-sample accumulation weightSamples: number of radial samples (lower = cheaper/sharper for pixel art)Color: moonlight tintNoiseAmount: subtle temporal dithering/noise to avoid over-smooth blur