mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
fixed missing discard
This commit is contained in:
parent
a4fda1b843
commit
b597c538ef
@ -430,8 +430,10 @@ shared_ptr<glhr::GLprogram> write_shader(flagtype shader_flags) {
|
|||||||
"vFogs = 0.5 - gl_Position.z / 2.0;\n";
|
"vFogs = 0.5 - gl_Position.z / 2.0;\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
if(have_texture)
|
if(have_texture) {
|
||||||
fmain += "gl_FragColor *= texture2D(tTexture, vTexCoord);\n";
|
fmain += "gl_FragColor *= texture2D(tTexture, vTexCoord);\n";
|
||||||
|
fmain += "if(gl_FragColor.a == 0.) discard;\n";
|
||||||
|
}
|
||||||
|
|
||||||
if(have_vfogcolor) {
|
if(have_vfogcolor) {
|
||||||
varying +=
|
varying +=
|
||||||
|
Loading…
Reference in New Issue
Block a user