Vincent Lejeune
0cf6e4266a
Graphics: Clean some dead code.
...
Still leave some shadow related code as comment, I will need later to
port cand's work on penumbra shadow.
2014-02-12 17:51:17 +01:00
Vincent Lejeune
70f89a8bce
Shadow: Use 4 cascades.
...
Now that we use GS and textures array it's easier to add a cascade.
4 is still not optimal but I'd like to avoid cascade count inflation as
much as possible ; 4 x 1024x1024 has the bandwidth requirement of the
single 2048x2048 shadowmaps we previously had.
2014-02-11 21:49:46 +01:00
Vincent Lejeune
934d1f10b8
Shadow: Use Geometry Shader for better perfs.
...
The 3 cascades are now rendered in a single pass, using 2D array texture and
a GS to do the dispatch ("layered rendering").
It's possible to use instancing instead but it requires the AMD_vertex_shader_layer
extension which is oddly part of opengl 4.2.
2014-02-11 21:07:44 +01:00
auriamg
b060b7651a
Merge pull request #37 from KroArtem/master
...
Fix coverity issues (memleaks, copy-paste error)
2014-02-10 19:23:45 -05:00
Vincent Lejeune
da6e6daeaa
Create a BO with texture_2d_array for shadows.
2014-02-10 19:01:24 +01:00
Vincent Lejeune
c8844486fa
Shadow: Tweak bias
2014-02-10 15:58:09 +01:00
Vincent Lejeune
515bcbc750
Shadow: very crude csm support
2014-02-10 15:42:17 +01:00
Vincent Lejeune
ad2dcff431
Revert "Fixed running on hd3000 (8192 was too big for my system, not sure"
...
This reverts commit 748dcf1e15
.
2014-02-10 15:39:52 +01:00
hiker
748dcf1e15
Fixed running on hd3000 (8192 was too big for my system, not sure
...
what values should be used best, I used the previous code here).
2014-02-10 21:35:13 +11:00
Vincent Lejeune
4fd130b2ac
Shadow: Grass now cast shadows.
2014-02-09 23:24:01 +01:00
Vincent Lejeune
18896ff95e
Shadow: Support for alpha tested meshes.
2014-02-09 22:56:50 +01:00
Vincent Lejeune
19d490a26d
Lights: Remove unused export value.
2014-02-09 21:18:15 +01:00
Vincent Lejeune
1c510881a7
Shadow: Fix broken specular with shadows enabled.
2014-02-09 21:16:16 +01:00
Vincent Lejeune
5d5ac34648
Shadow: soften edge a little
2014-02-09 20:03:54 +01:00
Vincent Lejeune
63db565fd7
Shadow: Better bias.
2014-02-09 19:42:22 +01:00
Vincent Lejeune
f0ef8e9913
Shadow: reenable shadows
...
It's just plain basic shadowmaps, a lot of tweak is still necessary but
it gives a way to see how light values are affected in some places.
(cave in chocolate for instance)
2014-02-09 19:20:55 +01:00
KroArtem
dfe267e9ec
Merge remote-tracking branch 'upstream/master'
2014-02-09 17:23:47 +04:00
KroArtem
33ea1a6ef5
fix coverity issues
2014-02-09 17:04:15 +04:00
KroArtem
452af6f423
fix typo
2014-02-09 02:16:14 +04:00
KroArtem
cdeab373c3
add assert in case ftell fails
2014-02-09 02:04:22 +04:00
KroArtem
49d14e5046
copy-paste error
2014-02-09 01:50:02 +04:00
KroArtem
c4fd2eda08
fixing some memleaks
2014-02-09 01:36:32 +04:00
Vincent Lejeune
ab05cb45b8
Shaders: Remove some unused shaders.
2014-02-08 18:19:16 +01:00
auriamg
3fdae349b2
Merge pull request #36 from KroArtem/master
...
Clean src/modes and src/karts from old logging code
2014-02-07 18:36:54 -05:00
KroArtem
1861c6533a
small fix: mismatching allocation/deallocation
2014-02-08 01:21:39 +04:00
KroArtem
fde38a35af
clean src/addons
2014-02-07 16:45:38 +04:00
KroArtem
591e421b10
clean src/io
2014-02-07 16:23:46 +04:00
KroArtem
746c1ddf5d
clean src/items
2014-02-07 15:38:20 +04:00
KroArtem
c0b13b01ff
clean src/modes from printf/cout/cerr
2014-02-07 02:17:49 +04:00
KroArtem
a61ee58a39
clean src/karts from cout, printf and cerr
2014-02-06 01:26:30 +04:00
Vincent Lejeune
653a695eda
Fix fog looking weird on transparent.
...
But mixing alpha with 0 instead of 1.
2014-02-05 15:07:57 +01:00
Vincent Lejeune
62964430a6
Unset AF when not requested
...
AF was never unset thus making it enabled everywhere even when there was
a 1:1 fragment/texel mapping.
This makes a significant performance boost when AF is enabled.
2014-02-05 15:07:18 +01:00
auriamg
7d0216c110
Merge pull request #32 from KroArtem/master
...
Get rid of printf/cout in kart_selection.cpp, cppcheck fixes
2014-02-04 16:10:37 -08:00
KroArtem
ca4bfa525e
revert changes in race_manager.hpp
2014-02-04 04:38:52 +04:00
KroArtem
ddbc2299b7
Merge remote-tracking branch 'upstream/master'
2014-02-04 03:50:08 +04:00
KroArtem
a7b2490be6
cppcheck fixes
2014-02-04 03:43:44 +04:00
KroArtem
2772fafcf0
cppcheck fixes, use logging in kart_selection.cpp
2014-02-04 02:53:50 +04:00
Vincent Lejeune
19c9cd217f
Reenable Anisotropic Filtering
2014-02-03 20:30:40 +01:00
Vincent Lejeune
1d6df18b0a
Remove 2 extras printf in shaders.cpp
2014-02-03 20:15:20 +01:00
Vincent Lejeune
5964809f3c
Forget to add transparentfog.frag shader.
2014-02-03 20:14:12 +01:00
Vincent Lejeune
8a341dc800
Add a transparent fog aware shader
2014-02-03 20:04:01 +01:00
Vincent Lejeune
6e93178d68
Fog: Do not use camposition in the shader.
2014-02-03 20:04:00 +01:00
Deve
57b38b4371
Partially fixed #1067 .
...
beforeAddingWidget() wasn't accounting for the extra space required for the random track.
This was causing the ribbon widget in soccer mode to get drawn incorrectly.
I also changed it in easter egg and tracks screen.
Thanks to sachith500.
2014-02-03 19:29:27 +01:00
Deve
35941194bb
If challenges in overworld are GPs, they now indicate so. Thanks to sachith500.
2014-02-03 18:25:36 +01:00
KroArtem
e0a6ec717e
cppcheck: unused functions
2014-02-03 00:53:18 +04:00
Vincent Lejeune
477dc093e3
GPUParticle: Use .hpp extension and reformat files now that I discovered how to force VS to emit space instead of indent.
2014-02-02 21:13:03 +01:00
Vincent Lejeune
deb6883a67
Graphics: try to fix some coverity reported issues.
2014-02-02 21:05:57 +01:00
Vincent Lejeune
9595884354
Fix linux build
2014-02-02 20:52:18 +01:00
Vincent Lejeune
541edc76a0
Shaders:Clean some dead code
2014-02-02 20:41:39 +01:00
Vincent Lejeune
cd43ee3c9d
Lightprepass: Remove now useless lightblend shader.
2014-02-02 20:18:05 +01:00