WolfireGames / overgrowth

Open Source codebase of the game Overgrowth by Wolfire Games LLC
Apache License 2.0
2.51k stars 260 forks source link

Inefficient quad rendering in postprocess effects #23

Open turol opened 2 years ago

turol commented 2 years ago

Postprocessing in https://github.com/WolfireGames/overgrowth/blob/08da859107194d3d283c6b54565bffb656478a26/Source/Main/engine.cpp#L2592 is inefficient. It uses a quad instead of oversized triangle, causing overshading on the diagonal. Also this can be done without vertex/index buffers: https://www.reddit.com/r/gamedev/comments/2j17wk/a_slightly_faster_bufferless_vertex_shader_trick/