Add another hardcoded scene. Also made a test file for hw3 that should cover all the commands.

This commit is contained in:
Godzil
2020-02-23 19:37:47 +00:00
parent f226664fe3
commit 80f59efa43
3 changed files with 167 additions and 1 deletions

26
tests/test_keys.hw3scene Normal file
View File

@@ -0,0 +1,26 @@
# line with a comment
camera 0 0 -1 0 0 0 0 1 0 50
point 0 4 0 .7 .2 .2
point 4 -4 0 .2 .7 .2
point -4 -4 0 .2 .2 .7
color 1 1 1
ambient 1 1 1
sphere 0 0 0 .3
color 1 0 0
diffuse 0.4 0.4 0.4
specular 0.4 0.4 0.4
shininess 1
emission 0 0 0
pushTransform
scale 0.1 0.1 0.1
rotate 0 1 0 45
popTransform
pushTransform
translate .4 0 0
sphere 0 0 0 .1
popTransform