mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
simple cascade shadows test
This commit is contained in:
parent
ad0396b31e
commit
9e05f6dbb6
5 changed files with 67 additions and 38 deletions
|
|
@ -1,3 +1,4 @@
|
|||
in float a_distance;
|
||||
in vec4 a_color;
|
||||
in vec2 a_texCoord;
|
||||
in vec3 a_position;
|
||||
|
|
@ -17,13 +18,9 @@ uniform vec3 u_fogColor;
|
|||
uniform float u_fogFactor;
|
||||
uniform float u_fogCurve;
|
||||
uniform bool u_alphaClip;
|
||||
|
||||
uniform sampler2DShadow u_shadows;
|
||||
uniform vec3 u_sunDir;
|
||||
uniform int u_shadowsRes;
|
||||
|
||||
uniform bool u_enableShadows;
|
||||
uniform mat4 u_shadowsMatrix;
|
||||
|
||||
#include <shadows>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue