1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:27:46 +00:00

LibGL+LibSoftGPU: Implement glDrawPixels depth buffer support

This enabled writing directly to the depth buffer, and allows games
like Grim Fandango to render their pre-baked depth buffers correctly!
This commit is contained in:
Jelle Raaijmakers 2022-01-12 17:08:59 +01:00 committed by Andreas Kling
parent ca78327a96
commit 8efd6bc878
3 changed files with 52 additions and 15 deletions

View file

@ -105,6 +105,7 @@ public:
void clear_depth(float);
void blit_to(Gfx::Bitmap&);
void blit_to_color_buffer_at_raster_position(Gfx::Bitmap const&);
void blit_to_depth_buffer_at_raster_position(Vector<float> const&, size_t, size_t);
void wait_for_all_threads() const;
void set_options(const RasterizerOptions&);
void set_light_model_params(const LightModelParameters&);