Sketch ini
This commit is contained in:
parent
be0177b1b0
commit
b8bab2264f
16 changed files with 2510 additions and 0 deletions
15
Sketch3D/rsc/shaders/Texture.frag
Normal file
15
Sketch3D/rsc/shaders/Texture.frag
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#version 330 core
|
||||
|
||||
in vec2 UV;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
uniform sampler2D renderedTexture;
|
||||
|
||||
void main(){
|
||||
vec4 texColor = texture(renderedTexture, UV);
|
||||
if(texColor.a < 0.2)
|
||||
discard;
|
||||
|
||||
color = texColor;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue