COMP30019 (Graphics and Interaction) Project 1, summer 2019
FlightSimulator.cs
is the script that controls camera motion including its orientation and position.
For preventing camera penetrating objects, Rigidbody
and BoxCllider/MeshCollider
are added to the camera, landscape and water.
Landscape.cs
is the script that generate a landscape based on diamond-square algorithm. And the height of sand, grass and snow is differed in this script.
LandscapeShader.shader
defined the landscape shader which implements the phong illumination model and phong shading technique.
Water.cs
generate a water plane according to the dimensions of the landscape.
WaterShader.shader
focus on the wave the water surfac and also implements the phong illumination model.
Sun.cs
update the position of sun based on time changed.