Voxel models are too dark when Ambient Occlusion is enabled.

Moderator: GZDoom Developers

Forum rules
Please construct and post a simple demo whenever possible for all bug reports. Please provide links to everything.

If you can include a wad demonstrating the problem, please do so. Bug reports that include fully-constructed demos have a much better chance of being investigated in a timely manner than those that don't.

Please make a new topic for every bug. Don't combine multiple bugs into a single topic. Thanks!
User avatar
axredneck
Posts: 384
Joined: Mon Dec 11, 2017 2:09 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Arch
Graphics Processor: nVidia with Vulkan support
Location: Russia

Voxel models are too dark when Ambient Occlusion is enabled.

Post by axredneck »

I believe it's because voxels don't have normals which are used by SSAO shader.
How to reproduce:
- Download and run any wad with voxels.
- Toggle Ambient Occlusion on/off while looking at voxel model(s).
Possible solution: render voxel models with invalid normals, e.g. vec3(0,0,0) or vec3(0,0,-1), and filter out pixels with such normals in SSAO shader.

Return to “OpenGL Renderer Bugs”