VoxelPlugin / VoxelPluginFreeLegacy

Voxel Plugin Legacy for Unreal Engine
https://voxelplugin.com
1.56k stars 297 forks source link

Incorrect Triplanar blend weight, with fix. #26

Closed JonnyS7G closed 6 years ago

JonnyS7G commented 6 years ago

In the TriplanarProjection material function, the final Normalize operation under the "Weigths computation" comment section is not correct according to the reference paper at http://transvoxel.org/Lengyel-VoxelTerrain.pdf, causing visual artifacts over the blending area (brighter seams). To fix, you just divide by the sum of the components, instead of using Normalize.

Phyronnaz commented 6 years ago

Thanks! I've fixed that on my local version, however it may take some time to update the repo.

Have a nice day!