Skip to content

Commit

Permalink
code style experiments plus diabled shadows by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKovacs committed Mar 29, 2015
1 parent d57b589 commit ab8bb46
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 204 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ Latest binary download available on the github [releases](https://github.com/Art
I strognly recommend you to download the dependencies from your software manager. For detailed instructions
please go to [How to make it work on linux](https://github.com/ArturKovacs/GL-raytracer/wiki/How-to-make-it-work-on-linux) )

Please note that the program is mainly tested with proprietary AMD display driver and
(according to a former check) it won't work with open-source driver on an AMD GPU.

### Movement ###
You can move with w,a,s,d. Holding SHIFT will make you move faster.
Pressing SPACE will capture the mouse.
You can look around with the mouse while it is captured.
Pressing SPACE again releases the mouse.

### Additional tips ###
Shadows are turned off by default to increase compatibility. However you can enable them by
setting "ENABLE_SHADOWS" to 1 in the file "fragment.glsl".

Feel free to play with fragment.glsl and vertex.glsl:
The core of the raytracer is in fragment.glsl.
However there are some properties that can be changed in vertex.glsl (eg camera field of view).
Expand Down
2 changes: 1 addition & 1 deletion fragment.glsl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#version 140

//turn shadows on/off (affects performance quite well)
#define ENABLE_SHADOWS 1
#define ENABLE_SHADOWS 0
//turn a realistic drunkenness vision on/off
#define DRUNK 0

Expand Down
Loading

0 comments on commit ab8bb46

Please sign in to comment.