r/computergraphics • u/Chubiduwa • 1d ago
Flatfold - custom renderer with AO / GI / Reflections / Refraction
Flatfold is a custom renderer I've created with some AI assistance for boilerplate and testing. Video is running with WebGL 2 inside Chrome.
Some features:
- Lighting: directional, spot and point lights, emissive materials
- Shadows: pixel perfect sharp shadows, coloured shadows
- Reflections: infinite reflections, including light
- Refraction: index of refraction, caustics, Snell's law
- Portals: see another part of the scene through, supports all features including lighting, reflection, refraction, etc.
- Baked AO: static lightmap using raycasting built on load
- Baked GI: static lightmap relightable in realtime, including emissive materials
Future extensions:
- Specular
- Volumetric lighting
- Frosted/glossy surfaces
6
Upvotes