Texture tree and terrain scene, refactoring and cleanup
This commit is contained in:
parent
34942b08c5
commit
75b2a72957
13 changed files with 200 additions and 97 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue