Add possibility to play with focal length and aperture to the camera. Not enabled by default.

This commit is contained in:
Godzil
2020-03-17 00:23:16 +00:00
parent 9849c16f66
commit 61ce9d3543
4 changed files with 36 additions and 9 deletions

View File

@@ -68,4 +68,9 @@ double max3(double a, double b, double c)
double frand()
{
return rand() / ((double) RAND_MAX);
}
double frandclip(double min, double max)
{
return (frand() * (max - min)) + min;
}