a0.10_9 Misc changes and big shader optimisation & cleanup
+ added gradient check before light calculation; + circles now indicate where lights are located when in lighting mode; + added controls section to README; + added tool icon in lower-left for better usability; * renamed light.size to light.radius for clarity; * organised lighting.frag into functions; * changed to use 'out vec4 fragColor' rather than deprecated gl_FragColor; - removed uApple & uSmoothShadows shader uniforms (no more manual toggling of soft/hard shadows);
Showing
- CMakeLists.txt 1 addition, 1 deletionCMakeLists.txt
- README.md 25 additions, 9 deletionsREADME.md
- build.sh 6 additions, 2 deletionsbuild.sh
- res/shaders/broken.frag 6 additions, 4 deletionsres/shaders/broken.frag
- res/shaders/lighting.frag 56 additions, 41 deletionsres/shaders/lighting.frag
- res/textures/brush.png 0 additions, 0 deletionsres/textures/brush.png
- res/textures/canvas.png 0 additions, 0 deletionsres/textures/canvas.png
- res/textures/cursor.png 0 additions, 0 deletionsres/textures/cursor.png
- res/textures/icons/drawing.png 0 additions, 0 deletionsres/textures/icons/drawing.png
- res/textures/icons/lighting.png 0 additions, 0 deletionsres/textures/icons/lighting.png
- res/textures/icons/viewing.png 0 additions, 0 deletionsres/textures/icons/viewing.png
- src/config.h.in 2 additions, 0 deletionssrc/config.h.in
- src/game.cpp 40 additions, 46 deletionssrc/game.cpp
- src/game.h 3 additions, 2 deletionssrc/game.h
- src/main.cpp 1 addition, 1 deletionsrc/main.cpp
Please register or sign in to comment