Reflecting Light
This project was small one that I started at school and I improved later. To test myself with OpenGL and more especially with the shaders and lighting managment, I created a program that simulate the reflection of the light on a reflective surface (such as glass).
In other words, this program calculates the direction that the light will take if it reflects of a surface. By taking this direction, it creates a spotlight from the surface to a wall.
After making this, I've added the possibility to move the surface in order to make the reflection moving the same way as we are reflecting the sunlight on our watch.
Finally I duplicated the surface and the lights and give them different colours. By converting the RGB values to RYB values in order to have the primary colours, I manage to calculate the mix of the two lights colours on the wall.
Link to the GitHub repository: https://github.com/simon-gonand/individualProjectAGP
Link to the GitHub repository: https://github.com/simon-gonand/individualProjectAGP
0 comments:
Post a Comment