scissor fix

This commit is contained in:
ManDude
2022-01-10 05:05:30 +00:00
parent 440f915196
commit aaf8e5ea45
2 changed files with 5 additions and 3 deletions
@@ -912,7 +912,7 @@ void SpriteRenderer::do_3d_block_cpu(u32 count,
m_vertices_3d.at(sprite_idx * 6 + 4).vert_id = 3;
m_vertices_3d.at(sprite_idx * 6 + 5).vert_id = 0;
/*
// STEP 1: UNPACK DATA AND CREATE READABLE VARIABLES
@@ -1177,9 +1177,11 @@ void SpriteRenderer::do_3d_block_cpu(u32 count,
// m_sprite_renderer.render_gif((const u8*)&packet, sizeof(packet), render_state, prof);
*/
}
glDisable(GL_DEPTH_TEST);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_GEQUAL);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
@@ -140,7 +140,7 @@ void main() {
gl_Position = transformed;
// scissoring area adjust
// gl_Position.y *= 512.0/448.0;
gl_Position.y *= 512.0/448.0;
// fragment_color = vec4(rgba_in.x, rgba_in.y, rgba_in.z, rgba_in.w * 2.);
// tex_coord = tex_coord_in;
// tex_info = tex_info_in;