Tune mipmaps and alpha clip threshold

main
parent 8369c62f26
commit 5ad3b59da4

@ -790,7 +790,7 @@ sg_image load_image(MD_String8 path)
.height = png_height,
.pixel_format = SG_PIXELFORMAT_RGBA8,
.min_filter = SG_FILTER_LINEAR,
.num_mipmaps = 0,
.num_mipmaps = 1,
.wrap_u = SG_WRAP_CLAMP_TO_EDGE,
.wrap_v = SG_WRAP_CLAMP_TO_EDGE,
.mag_filter = SG_FILTER_LINEAR,

@ -219,7 +219,7 @@ float calculate_shadow_factor(sampler2D shadowMap, vec4 light_space_fragment_pos
void main() {
vec4 col = texture(tex, uv);
if(col.a < 0.5)
if(col.a < 0.1)
{
discard;
}

Loading…
Cancel
Save