mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
initial commit
This commit is contained in:
parent
27b194816b
commit
fc46b7c434
36 changed files with 755 additions and 71 deletions
11
res/shaders/shadows.glslf
Normal file
11
res/shaders/shadows.glslf
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
in vec2 a_texCoord;
|
||||
|
||||
uniform sampler2D u_texture0;
|
||||
|
||||
void main() {
|
||||
vec4 tex_color = texture(u_texture0, a_texCoord);
|
||||
if (tex_color.a < 0.5) {
|
||||
discard;
|
||||
}
|
||||
// depth will be written anyway
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue