mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
rsx: Enable support for extended range in depth buffer
- Software clipping emulation is used here as OpenGL does not have explicit clip control. - Hardware clip control for vulkan to be enabled after this.
This commit is contained in:
parent
2e88924cb9
commit
dc465df3bc
12 changed files with 290 additions and 222 deletions
|
|
@ -167,6 +167,11 @@ void GLGSRender::update_draw_state()
|
|||
gl_state.depth_bounds(rsx::method_registers.depth_bounds_min(), rsx::method_registers.depth_bounds_max());
|
||||
}
|
||||
|
||||
if (gl::get_driver_caps().NV_depth_buffer_float_supported)
|
||||
{
|
||||
gl_state.depth_range(rsx::method_registers.clip_min(), rsx::method_registers.clip_max());
|
||||
}
|
||||
|
||||
gl_state.enable(rsx::method_registers.dither_enabled(), GL_DITHER);
|
||||
|
||||
if (gl_state.enable(rsx::method_registers.stencil_test_enabled(), GL_STENCIL_TEST))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue