WickedEngine
WickedEngine copied to clipboard
[Feature Request] Triplanar mapping
Hello, Have you planned to add support of triplanar texture mapping in world coord to material ? Thanks
I tried this some time ago, when there was a separate terrain shader. It was too much work to support it for all shader types, texture slots, render effects.
Now this could be maybe supported more efficiently by baking it into the terrain virtual textures.
This material type is not only for terrain, for exemple when a model doesn't have an uvmap this is really practical.
From the renderer side, it wouldn't be very practical. Sampling textures 3 times for each screen pixel is expensive, if you take into account all the texture maps (albedo, surface, normalmap, ...), shader types (pbr, anisotropic, parallax, ...). Then also would need to implement this for all effects (forward, raytraced, envmap, ...)
This probably won't be supported out of the box. It can be done by custom shader on user end.