WebGL is a cross-platform, royalty-free web standard for a low-level 3D graphics API based on OpenGL ES 2.0 [...]
for each object in the scene {
for each pixel in the image {
if (object affects pixel) {
do something
}
}
}
for each pixel in the image{
for each object in the scene {
if (object affects pixel) {
do something
}
}
}

