mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Change Occlusion Culling Buffer debug view to use log scaling
This commit is contained in:
parent
19bb18716e
commit
d41fe74342
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ RID RendererSceneOcclusionCull::HZBuffer::get_debug_texture() {
|
|||
|
||||
unsigned char *ptrw = debug_data.ptrw();
|
||||
for (int i = 0; i < debug_data.size(); i++) {
|
||||
ptrw[i] = MIN(mips[0][i] / debug_tex_range, 1.0) * 255;
|
||||
ptrw[i] = MIN(Math::log(1.0 + mips[0][i]) / Math::log(1.0 + debug_tex_range), 1.0) * 255;
|
||||
}
|
||||
|
||||
debug_image->set_data(sizes[0].x, sizes[0].y, false, Image::FORMAT_L8, debug_data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue