Skip to content

Terrain material filtering #10

@kvark

Description

@kvark

We see heavy blockiness in close-up to the surface, due to the limited resolution of our terrain map, and the fact no filtering is done over the material property.

Obviously, just plain filtering the material ID doesn't work. Averaging materials 5 and 10 doesn't make sense. Instead, we can gather all 4 material IDs, do all the lighting computations on them, and apply bilinear filtering to the result.

Performance-wise, it's not too fast. However, it's only going to be done once per pixel of the main frame rendering (not shadow map or anything else). And there is already some ray-tracing going on there, so it's not like this enhancement would make it much slower :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions