SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SLRay.cpp File Reference
#include <SLRay.h>
#include <SLSceneView.h>
#include <SLSkybox.h>
Include dependency graph for SLRay.cpp:

Go to the source code of this file.

Functions

SLfloat rnd01 ()
 

Variables

auto random01
 

Detailed Description

Date
July 2014
Authors
Marcus Hudritsch
Remarks
Please use clangformat to format the code. See more code style on https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style
Date
February 2013
Authors
Marcus Hudritsch
Remarks
Please use clangformat to format the code. See more code style on https://github.com/cpvrlab/SLProject4/wiki/SLProject-Coding-Style

Definition in file SLRay.cpp.

Function Documentation

◆ rnd01()

SLfloat rnd01 ( )

Definition at line 39 of file SLRay.cpp.

39 { return random01(); }
auto random01
Definition: SLRay.cpp:36

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.

Definition at line 36 of file SLRay.cpp.