Basic 3D rendering
This commit is contained in:
13
res/glsl/fragment.glsl
Normal file
13
res/glsl/fragment.glsl
Normal file
@@ -0,0 +1,13 @@
|
||||
#version 450 core
|
||||
|
||||
in vec3 textureCoord;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
uniform sampler2DArray textureSampler;
|
||||
|
||||
void main()
|
||||
{
|
||||
color = texture(textureSampler, textureCoord);
|
||||
if (color.w < 0.1) discard;
|
||||
}
|
||||
Reference in New Issue
Block a user