Skip to content

Tutorial: Background

Joon Hyub Lee edited this page Jul 17, 2013 · 24 revisions
**[Home](https://github.com/joonhyublee/joons-renderer/wiki) > [Tutorial](https://github.com/joonhyublee/joons-renderer/wiki/Tutorial) > Tutorial: Background**
  • [Background Color](#Background Color)
  • [Global Illumination - Instant](#Global Illumination - Instant)
  • [Global Illumination - Ambient Occlusion](#Global Illumination - Ambient Occlusion)
  • [Cornell Box](#Cornell Box)
## Background Color * `jr.background(float gray)` * `jr.background(float r, g, b)`

^ top

## Global Illumination - Instant * `jr.background("gi_instant")` * `jr.background("gi_instant", int samples, int sets, float c, float biasSamples)`

^ top

## Global Illumination - Ambient Occlusion * `jr.background("gi_ambient_occlusion")` * `jr.background("gi_ambient_occlusion", float bright r, g, b, dark r, g, b, float maxDistance, int samples)`

^ top

## Cornell Box * `jr.background("cornell_box", float width, height, depth)` * `jr.background("cornell_box", float width, height, depth, radiance R, G, B, int samples)` * `jr.background("cornell_box", float width, height, depth, radiance R, G, B, int samples, left R, G, B,` `right R, G, B, back R, G, B, top R, G, B, bottom R, G, B)`

^ top