YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
24 stars 8 forks source link

In-Game: Add ability to read the current Z-buffer and set items to be at specific buffer depths #3662

Open iampremo opened 1 year ago

iampremo commented 1 year ago

Zendesk ticket : [Ticket #184844]

We should be able to access the z buffers that GM creates for the surfaces when surface depth is enabled. Something like: _surface_get_pixeldepth(surface, x, y)

Benefit: It's a valuable data structure for writing shaders - and at the moment we need to create our own depth buffers on surfaces with multi-target rendering

gnysek commented 1 year ago

Related to https://github.com/YoYoGames/GameMaker-Bugs/issues/3708