Path Tracing
Loading...
Searching...
No Matches
cornell_scene.glsl File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool intersects_basic (const Ray ray, inout Hit h)
bool intersects_cornell (const Ray ray, out Hit h)
 Tests ray intersection with a described scene.

Variables

const vec3 WHITE = vec3(0.90, 0.90, 0.90)
const vec3 RED = vec3(0.90, 0.05, 0.05)
const vec3 GREEN = vec3(0.05, 0.90, 0.05)

Function Documentation

◆ intersects_basic()

bool intersects_basic ( const Ray ray,
inout Hit h )

◆ intersects_cornell()

bool intersects_cornell ( const Ray ray,
out Hit h )

Tests ray intersection with a described scene.

Parameters
rayEntry ray
hHit record point
Returns
true if ray intersected with scene, false if ray escaped

Variable Documentation

◆ GREEN

const vec3 GREEN = vec3(0.05, 0.90, 0.05)

◆ RED

const vec3 RED = vec3(0.90, 0.05, 0.05)

◆ WHITE

const vec3 WHITE = vec3(0.90, 0.90, 0.90)