We did also create the floor by creating a tiled bases texture that can be repeated over and over again. In Unity we used the shader called "Bumped Diffuse" which allowed us to repeate the texture and use a Normal Map aswell.
Tiled Texture |
Next we created the window frame that's in the window.
We angled the directional light so that it would shine through the windows, at first the wall did not cast any shadows which was due to it being a plane and not having a backside with normals pointing out. This was solved by covering the back of the wall with planes facing outwards, by doing so we ended up with the result below. The window itself was created by using a plane and applying a transparent shader.
Finally we created a small script for changing the color of the lights because we thought it would be fun. The lights was quite hard to see where the directional light was shining so a third light was added between those two, where it was much easier to see. We also made it possible to dim the lights.
The documentation on Unitys website was very usefull when writing the script, Script Light Behaviour
This is the final result of our project in this course.
K (hold) - make it darker
J (hold) - make it brighter
R - Red Light, T - Green Light, Y - Yellow Light, U - Blue Light, I - White Light
/Staffan & Jimmy
Inga kommentarer:
Skicka en kommentar