I declare that this code is my own work
Author Jun Zhang jzhang213@sheffield.ac.uk
snow_background.jpg - Freepik
snowfall.jpg - Image by kjpargeter on Freepik
Quicksand.jpg - [https://www.pexels.com/license/]
jade.jpg - [http://libnoise.sourceforge.net/examples/textures/index.html]
ear0xuu2.jpg - [https://github.com/nasa/NASA-3D-Resources]
jup0vss1.jpg - [https://github.com/nasa/NASA-3D-Resources]
Thanks to Dr. Steve Maddock for providing the tutorial and material. Some of the code in this project is derived from his work.
For the convenience of evaluation, the files with major changes are listed below for your reference, other files may also have modifications.
add button, could switch every light, rock or roll every alien independently
create 2 alien, 1 lampPost objects from their class, aliens are in different textures. build and joint floor and background in different shader, the background rely on mixed texture.
alien class
set different type light by boolean argument, could switch independently
lamp post class
multiple lights support
keep the snowfall moving
mix two textures