WickedEngine icon indicating copy to clipboard operation
WickedEngine copied to clipboard

[Feature Request] Triplanar mapping

Open Cop46 opened this issue 2 years ago • 3 comments

Hello, Have you planned to add support of triplanar texture mapping in world coord to material ? Thanks

Cop46 avatar May 10 '22 19:05 Cop46

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.

turanszkij avatar May 10 '22 21:05 turanszkij

This material type is not only for terrain, for exemple when a model doesn't have an uvmap this is really practical.

Cop46 avatar May 11 '22 11:05 Cop46

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, ...)

turanszkij avatar May 11 '22 13:05 turanszkij

This probably won't be supported out of the box. It can be done by custom shader on user end.

turanszkij avatar Nov 04 '22 17:11 turanszkij