Path Tracing
Loading...
Searching...
No Matches
Materials

Variables

const int MAT_DIFFUSE = 0
const int MAT_MIRROR = 1
const int MAT_GLASS = 2
const int MAT_TINTED_GLASS = 3
const int MAT_SHADOW_CATCHER = 4
uniform int FORCE_MATERIAL
uniform float GLASS_DISPERSION
 Glass dispersion strength (prism effect).
const int LIGHT_POINT = 0
const int LIGHT_DIRECTIONAL = 1
const int LIGHT_SPOT = 2

Detailed Description

Variable Documentation

◆ FORCE_MATERIAL

uniform int FORCE_MATERIAL

Forces one material from the gui

Note
-1 = disabled

◆ GLASS_DISPERSION

uniform float GLASS_DISPERSION

Glass dispersion strength (prism effect).

See also
pathTrace, DISPERSION_COEFF

◆ LIGHT_DIRECTIONAL

const int LIGHT_DIRECTIONAL = 1

◆ LIGHT_POINT

const int LIGHT_POINT = 0
Note
values need to sync in mesh.hpp

◆ LIGHT_SPOT

const int LIGHT_SPOT = 2

◆ MAT_DIFFUSE

const int MAT_DIFFUSE = 0

◆ MAT_GLASS

const int MAT_GLASS = 2

◆ MAT_MIRROR

const int MAT_MIRROR = 1

◆ MAT_SHADOW_CATCHER

const int MAT_SHADOW_CATCHER = 4

◆ MAT_TINTED_GLASS

const int MAT_TINTED_GLASS = 3