filbs111 / 3sphere-explorer

visualising a 3-sphere from the inside in webgl
5 stars 0 forks source link

better lighting #12

Closed filbs111 closed 7 years ago

filbs111 commented 7 years ago

bit vague currently have only fog something like a light source from the camera might make objects look a lot nicer. (esp untextured teapot, spaceship objects) diffuse should be fine. how to handle falloff on 3-sphere not sure.

being able to drop light sources would be even better.

filbs111 commented 7 years ago

a few problems currently - lighting appears to become uniform when close to objects, and should have an ambient light the colour of fog. also only applied in untextured shader so far.

filbs111 commented 7 years ago

done everything set out to. only one light source with same position as spaceship. trivial to add in more.