mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Improvements to colored shadows (#11516)
This commit is contained in:
parent
21113ad410
commit
982e03f60d
5 changed files with 29 additions and 5 deletions
|
@ -1,5 +1,8 @@
|
|||
uniform mat4 LightMVP; // world matrix
|
||||
varying vec4 tPos;
|
||||
#ifdef COLORED_SHADOWS
|
||||
varying vec3 varColor;
|
||||
#endif
|
||||
|
||||
const float bias0 = 0.9;
|
||||
const float zPersFactor = 0.5;
|
||||
|
@ -23,4 +26,8 @@ void main()
|
|||
|
||||
gl_Position = vec4(tPos.xyz, 1.0);
|
||||
gl_TexCoord[0].st = gl_MultiTexCoord0.st;
|
||||
|
||||
#ifdef COLORED_SHADOWS
|
||||
varColor = gl_Color.rgb;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue