]> Dogcows Code - chaz/rasterize/blobdiff - animate.lua
add phong interpolation (lighting)
[chaz/rasterize] / animate.lua
index 476051ff8fb08accdd01018703df710b99e010f2..9917cb148f9f2187a920917b45abc4d321b5e653 100755 (executable)
@@ -15,7 +15,7 @@
 local size = {w = 640, h = 480}
 
 -- Set the number of frames to be rendered for the animation.
-local frames = 512
+local frames = 360
 
 -- Define the code to calculate where the camera is, in world coordinates.
 local eye = function(frame)
@@ -47,6 +47,7 @@ c 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1
 t 2 0 -2
 s 1 1 1
 g dragon.raw
+M 0.3 0.3 0.3 5
 c 0.7 0.3 0.2 0.8 0.2 0.1 0.9 0.2 0.2
 t -2 -1 -2
 s 2 2 2
@@ -55,10 +56,12 @@ c 0.1 0.2 0.7 0.1 0.3 0.9 0.2 0.1 0.8
 t 2 -1.5 2
 s 10 10 10
 g bunny.raw
+M 0.2 0.2 0.2 1
 c 0.9 0.8 0.9 0.8 0.7 0.9 0.9 0.8 0.7
 t -2 -1 2
 s 10 10 10
 g teapot2.raw
+M 1 1 1 128
 c 0 1 0 0 1 0 0 1 0
 t 0 -1 0
 s 0.6 0.6 0.6
This page took 0.018317 seconds and 4 git commands to generate.