Skip to content

tell a surface belongs to the bsp, properly select the renderer#309

Merged
illwieckz merged 2 commits intoDaemonEngine:masterfrom
illwieckz:bspsurface
Apr 13, 2020
Merged

tell a surface belongs to the bsp, properly select the renderer#309
illwieckz merged 2 commits intoDaemonEngine:masterfrom
illwieckz:bspsurface

Conversation

@illwieckz
Copy link
Copy Markdown
Member

@illwieckz illwieckz commented Apr 11, 2020

See #302 for explanations about the issue it fixes.

If I color in red what is rendered by vertexLighting_DBS_entity_fp.glsl, in green what is rendered by vertexLighting_DBS_world_fp.glsl and in blue what is rendered by lightMapping_fp.glsl, I get this:

While world vertex lighting is disabled:

bsp surface

While world vertex lighting is enabled:

bsp surface

Everything looks fine now, bsp non-world models are not anymore rendered as entities.

There is still cases where surfaces are lightmapped while vertex world lighting is enabled, but that looks to be the bug described in #296.

Make possible to test if a surface comes for a map model,
even if if not world model or there is no lightmap.
@illwieckz
Copy link
Copy Markdown
Member Author

The bug was found while working on #301 (merge lightmap and vertex (lightgrid) world and entity lighting).

@illwieckz
Copy link
Copy Markdown
Member Author

I think there is very low chance this code introduces bugs, at least it's better than what we had before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant