WebGL doesn’t have to suck.
Here is a small demo that we put together. We are still trying to find everything needed to make this an asset available to the public, but we think we’ve come up with a cool technique to fake realtime GI. To do this we did two things.
- Get the average colors from the cameras render texture.
- Use a color overlay on the camera to fake the ambient color.
- Clear the average color before taking the next sample.
- Position the Render Camera at the back of the scene to asses the average colors more accurately.