forked from brson/rustray
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request brson#3 from 23Skidoo/master
Misc small fixes to make rustray compile with rustc 0.3
- Loading branch information
Showing
7 changed files
with
976 additions
and
981 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
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,10 @@ | ||
// TODO: These things should all be overridable by the command line | ||
const WIDTH : uint = 256u; | ||
const HEIGHT : uint = 256u; | ||
const FOV : f32 = 3.14159f32 / 3f32 ; | ||
const SAMPLE_GRID_SIZE : uint = 1u; | ||
const NUM_GI_SAMPLES_SQRT: uint = 8u; | ||
const NUM_LIGHT_SAMPLES : uint = 32u; | ||
const MAX_TRACE_DEPTH : uint = 3u; | ||
const USE_SMOOTH_NORMALS_FOR_GI : bool = true; | ||
const USE_SMOOTH_NORMALS_FOR_DIRECT_LIGHTING : bool = true; |
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
Oops, something went wrong.