Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// | ||
// An example scene for the spherical triangle estimation testing | ||
// It sports three close-range rectangle lights, where the problems | ||
// with the simplistic estimation of RectLight::solidAngle() are present. | ||
// | ||
|
||
GlobalSettings { | ||
frameWidth 640 | ||
frameHeight 480 | ||
gi 1 | ||
pathsPerPixel 128 | ||
} | ||
|
||
RectLight light1 { | ||
power 8 | ||
color (1, 1, 1) | ||
translate (-8, 3, -4) | ||
scale (6, 4, 4) | ||
rotate (0, 0, -90) | ||
xSubd 15 | ||
ySubd 15 | ||
} | ||
|
||
RectLight light2 { | ||
power 8 | ||
color (1, 0, 0) | ||
translate (-8, 1.5, 0) | ||
scale (3, 2, 2) | ||
rotate (0, 0, -90) | ||
xSubd 15 | ||
ySubd 15 | ||
} | ||
|
||
RectLight light3 { | ||
power 8 | ||
color (0, 1, 0) | ||
translate (-8, 0.75, 4) | ||
scale (1.5, 1, 1) | ||
rotate (0, 0, -90) | ||
xSubd 15 | ||
ySubd 15 | ||
} | ||
|
||
Camera camera { | ||
position (0, 7, -7) | ||
aspectRatio 1.33333 | ||
yaw 45 | ||
pitch -45 | ||
roll 0 | ||
fov 75 | ||
} | ||
|
||
Plane plane { | ||
limit 8 | ||
} | ||
|
||
Lambert lambert { | ||
color (0.5, 0.5, 0.5) | ||
} | ||
|
||
Node plane { | ||
geometry plane | ||
shader lambert | ||
} | ||
|