Benau
38bcb92d53
Fix #4533
2021-05-21 23:13:55 +08:00
Benau
7797115867
Add SP for correct normal and easier shader system
2017-12-25 14:00:10 +08:00
Deve
f7886a31bf
Better fix for shadow acne
2017-10-29 20:26:46 +01:00
Deve
bc84559f1d
Revert a hack for shadows.
...
It helps for horizontal surfaces, but makes vertical surfaces worse (for example rocks in cornfield crossing), so it's not really a solution.
2017-10-04 22:19:19 +02:00
Deve
5df2531a65
Added a hack that removes ugly lines when shadows are enabled.
...
Mathematically it's not 100% correct, but it looks much better.
2017-02-07 21:48:50 +01:00
Deve
3a9b2b9872
Fixed advanced lighting on android
2016-09-12 21:43:31 +02:00
deve
d5e30ee41e
Port also other shaders to use #stk_include
2016-06-27 13:11:27 +02:00
Vincent Lejeune
019ec344fe
Allow to reduce shadow resolution
2015-01-11 00:45:38 +01:00
Vincent Lejeune
3451d4e9a0
Add a ESM/PCF switch
2015-01-01 20:06:34 +01:00
Vincent Lejeune
d8b3cf9c8f
Factorise MRP
2014-12-27 03:22:06 +01:00
Vincent Lejeune
7aa7e2d148
Factorise sun color/position
2014-12-15 23:09:19 +01:00
Vincent Lejeune
1732b1cfef
Clean up sunlight shader + factorize diffusebrdf
2014-12-14 21:39:18 +01:00
Vincent Lejeune
a8ce996047
Revert "Simplify sunlight shadow shader."
...
This reverts commit cc7f95163c
.
2014-12-09 21:20:55 +01:00
Vincent Lejeune
cc7f95163c
Simplify sunlight shadow shader.
2014-12-09 19:00:21 +01:00
Vincent Lejeune
1e2656dc88
Use clamp instead of max(0, dot(normalized, normalized))
...
Should help GLSL compiler to optimize them.
2014-12-05 17:51:18 +01:00
Vincent Lejeune
fd2da4085b
Rename some shader to improve their meaning
2014-12-05 00:20:16 +01:00
Vincent Lejeune
f3a637fb99
Fix sun area light
2014-11-21 02:44:27 +01:00
Vincent Lejeune
4a8afd2d40
Implement sun as an disk area light.
...
Solid angle is defaulted to sun's one.
2014-11-21 01:54:30 +01:00
Vincent Lejeune
c594295288
Tweak shadow blur
2014-11-18 03:44:45 +01:00
Vincent Lejeune
c2859d24ce
Improved shadow stability
2014-11-15 21:27:15 +01:00
Vincent Lejeune
92ecd01e61
Make cascade split modifiable
2014-11-04 20:53:32 +01:00
Vincent Lejeune
ddecd23472
Tweak values
2014-11-02 19:07:02 +01:00
Vincent Lejeune
ebe11370a2
Reenable bluring
2014-11-02 16:30:44 +01:00
Vincent Lejeune
c5186e3ab3
Use depth in exp space
2014-11-02 16:26:46 +01:00
Vincent Lejeune
b975b63eea
Use proper depth linear value
2014-11-02 16:00:41 +01:00
Vincent Lejeune
9113aa7a39
Implement Exponential Shadow map
2014-11-02 02:36:10 +01:00
Vincent Lejeune
6aed902ae0
Store depth in color buffer instead of depth
...
This allows for instance to blur it using already existing shaders
2014-11-01 22:38:38 +01:00
Vincent Lejeune
ee687440c7
Increase shadow filtering
2014-10-29 18:57:39 +01:00
Vincent Lejeune
58c094917e
Use an header included in every shaders.
2014-08-02 00:50:56 +02:00
hiker
f1c8fcc6d4
Fix 1366.
2014-06-15 22:14:50 +10:00
vlj
55ddffaf54
Another round of big triangle port.
2014-06-03 20:28:42 +02:00
vlj
5e62347d11
Fix attempt for #1308
2014-05-03 17:36:27 +02:00
vlj
2a1623d8ca
Use a more efficient screen to view conversion
...
Also use the opportunity to use UBO where possible.
2014-05-02 18:11:34 +02:00
Vincent Lejeune
84ddd7119e
Use glPolygonOffset to remove shadow acne
...
It's a 2002 trick from M. Kilgard
2014-04-24 21:02:24 +02:00
vlj
85e720a58f
Shadow: tweak bias to remove acnee
2014-04-24 18:33:05 +02:00
Vincent Lejeune
d4718df127
Revert "Use some realist order of magnitude of light"
...
This reverts commit 2aa6676050
.
2014-04-22 00:44:08 +02:00
vlj
2aa6676050
Use some realist order of magnitude of light
2014-04-21 19:40:10 +02:00
vlj
e8b36f2490
Fix for shadow acne in chocolate.
2014-04-20 02:20:09 +02:00
vlj
87248b46f3
Tweak shadows CSM split.
2014-04-20 02:01:29 +02:00
vlj
1291d0cc93
Increase shadow fidelity.
2014-04-20 00:21:30 +02:00
vlj
a457b9f423
Shadows: Clean shaders.
2014-04-20 00:04:49 +02:00
vlj
e00ce85d7c
Support FresnelSchlick factor.
2014-04-07 21:35:10 +02:00
vlj
79c6424703
Use specularmap as glossiness map.
2014-04-07 21:35:09 +02:00
vlj
cafc07680a
Use Blinn Phong model.
2014-04-07 21:35:09 +02:00
Vincent Lejeune
29749d5dbd
Merge commit 'f3e2da881a4d394c4ca902548e788f5b4c0bdd81'
...
* commit 'f3e2da881a4d394c4ca902548e788f5b4c0bdd81':
Do not build shadow shader without gs support.
Add a function to query supported glsl ver
Some drivers dont support const array
2014-03-22 18:54:51 +01:00
Vincent Lejeune
aa39246404
Some drivers dont support const array
2014-03-22 18:36:19 +01:00
Vincent Lejeune
01b88fde9d
Factorize DecodeNormal from misc shaders.
2014-03-21 18:17:21 +01:00
Vincent Lejeune
af862cb6c5
#version autoadded to shaders and turn some v120
2014-02-28 17:29:05 +01:00
samuncle
073a049389
Correction of a syntax error
2014-02-17 22:36:00 +01:00
Vincent Lejeune
d5d57bbae0
Shadows: Softer edge and smoother cascade transitions
2014-02-15 20:45:47 +01:00