[WIP] Alpha blending enabled
This commit is contained in:
1 parent
c9384eb795
commit
ad90e5897a
6 files changed
+20
-31
No files matched your search
@@ -6,7 +6,7 @@
|
||||
|
||||
layout(set = 1, binding = 1) uniform sampler2D texSampler[];
|
||||
|
||||
layout(location = 0) in vec4 fragColor;
|
||||
layout(location = 0) in vec3 fragColor;
|
||||
layout(location = 1) in vec2 fragTexCoord;
|
||||
layout(location = 2) in flat uint instanceTextureId;
|
||||
|
||||
@@ -17,5 +17,5 @@ void main() {
|
||||
/* if (sampled.a < 0.1)
|
||||
discard;
|
||||
outColor = sampled; */
|
||||
outColor = fragColor * texture(texSampler[instanceTextureId], fragTexCoord).r;
|
||||
outColor = vec4(fragColor, texture(texSampler[instanceTextureId], fragTexCoord).r);
|
||||
}
|
||||
Reference in new issue
Block a user