mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
Add files via upload
This commit is contained in:
commit
e1cdcf01e9
49 changed files with 2866 additions and 0 deletions
14
res/main.glslf
Normal file
14
res/main.glslf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#version 330 core
|
||||
|
||||
in vec4 a_color;
|
||||
in vec2 a_texCoord;
|
||||
out vec4 f_color;
|
||||
|
||||
uniform sampler2D u_texture0;
|
||||
|
||||
void main(){
|
||||
vec4 tex_color = texture(u_texture0, a_texCoord);
|
||||
if (tex_color.a < 0.5)
|
||||
discard;
|
||||
f_color = a_color * tex_color;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue