Texture tree and terrain scene, refactoring and cleanup

This commit is contained in:
saschawillems 2017-12-21 21:28:31 +01:00
parent 34942b08c5
commit 75b2a72957
13 changed files with 200 additions and 97 deletions

View file

@ -1,5 +1,13 @@
#version 450
layout (set = 1, binding = 0) uniform sampler2D colorMap;
layout (location = 0) in vec2 inUV;
void main()
{
float alpha = texture(colorMap, inUV).a;
if (alpha < 0.5) {
discard;
}
}