Remove frand from that scene.

This commit is contained in:
Godzil
2020-03-02 17:44:17 +00:00
parent 478b1f0af1
commit 344c36cd78

View File

@@ -29,11 +29,6 @@
#include <triangle.h> #include <triangle.h>
#include <stdio.h> #include <stdio.h>
double frand(void)
{
return rand() / ((double) RAND_MAX);
}
Shape *fir_branch() Shape *fir_branch()
{ {
Group *ret = new Group(); Group *ret = new Group();
@@ -238,7 +233,7 @@ int main()
/* Set the camera */ /* Set the camera */
Camera camera = Camera(40, 30, 1.047); Camera camera = Camera(800, 600, 1.047);
camera.setTransform(viewTransform(Point(0, 0, -4), camera.setTransform(viewTransform(Point(0, 0, -4),
Point(0, 0, 0), Point(0, 0, 0),
Vector(0, 1, 0))); Vector(0, 1, 0)));