SLProject 4.0.000
SLRay.cpp File Reference
#include <SLRay.h>
#include <SLSceneView.h>
#include <SLSkybox.h>
Include dependency graph for SLRay.cpp:

Functions

SLfloat rnd01 ()
 

Variables

auto random01
 

Function Documentation

◆ rnd01()

SLfloat rnd01 ( )

Variable Documentation

◆ random01

auto random01
Initial value:
= bind(std::uniform_real_distribution<SLfloat>(0.0, 1.0),
std::mt19937((SLuint)time(nullptr)))
unsigned int SLuint
Definition: SL.h:171

Global uniform random number generator for numbers between 0 and 1 that are used in SLRay, SLLightRect and SLPathtracer. So far they work perfectly with CPP11 multithreading.