So I’m doing a triplanar landscape material and wanted to optimize it, sort of like it has been done in this paper https://ubm-twvideo01.s3.amazonaws.com/o1/vault/GDC2014/Presentations/Gollent_Marcin_Landscape_Creation_and.pdf at page 34.
I got the tightening factor working in UE4 but I don’t know if it is affecting performance, because I don’t know how materials in UE4 fetch textures.
Do they fetch and calculate textures only for the portions of the mesh where they actually appear? (So anywhere where they aren’t completely masked out)
Or does this work in another way?
Right now I’m sampling 3 textures, one for each texture. I know I could also just sample one, but in that case I would not be able to have somewhat smooth transition zones between projections, it’d be a stark cutoff, which is not what I’m looking for.
Right now my nodes look like this
The bottom part generates the UVs for each projection and the top the masks.
So essentially I’d like to know if there is a more efficient way of doing this, how UE4 fetches textures, and lastly if using Virtual Textures would help in performance, I never looked into it but maybe it would help