Texture Bombing, Requests and Questions

It may not be my place to speak, my knowledge of Material Shaders and Editor is primitive to say the least, so take what I say with a grain of salt, or give the salt back to me in the form of knowledge :slight_smile:

Would it be possible to allow us to use Texture Samples instead of Texture2d? I only ask because I make heavy use of instanced materials and would love to be able to change the textures being used instead of manually going into a function and changing them. There may be a justified reason for only allowing Texture2d inputs, idk.

I’m also going to assume that this function still needs to be worked on by Epic, I haven’t come across a pre built function that still includes parameters (left over from debugging(?)), would it be possible to get rid of them? It adds unnecessary clutter to instanced materials.

I’ll be making my own version of the function so it’s really no biggie to me, but I’m curious as to why you only allow Texture2d before I go ahead.


p.s, so far I love this function, has proven very very useful in the short amount of time I’ve used it

So, a while ago, I broke out the texture bombing functionality into a whole bunch of disparate material functions. It was… Actually non-trivial.

Dropbox - File Deleted (put this in Content/materials/functions/ in order to preserve references on initial load). But I’ll warn you, this is what it did to my terrain shader:

Now, granted, I got tired of dealing with this and eventually just disabled the bombing, so this is not the best solution in the whole wide world, but it could be a start. And it cut down on the instruction count of the material substantially.

Awesome bud, I’ll take a gander and see what I can take away from it.

Also, “But I’ll warn you, this is what it did to my terrain shader”, curious to know what it did to your Terrain Shader as that’s what I am using this functionality for, ty :slight_smile:
Oh, unless you’re referring to the tangled mess? It’s fine, gotten used to working in such cramped environments (I get homesick coming from Blueprint scripting sometimes), heres hoping I can smoothly transition my distance blend into the mix, cheers

It ended up just not being worth the performance cost, really. The landscape shader was already pretty hefty, and the texture bombing took it over my budget. It worked (minus some seams that I never ended up hunting down), though.

Hmmm… I’ll have to see how much it eats on my side, currently my shader isn’t too complicated, theres been a lot of functionality I could do without, so we’ll have to see if I can get away with it.


Hey, I know this isn’t a help thread, but I was wondering if I’m missing something important, it doesn’t seem to work with landscapes out of the box


I think I’m confused or your test texture is just blowing up my brain this morning, but it looks to be working on the landscape?

Haha my apologies, needed quick texture that I could tell if it’s being ‘bombed’ or not.

Ok, as I was preparing a new image to post I found something strange, it only seems to work on the landscape when using specific numbers, it may be because it tiles back up on itself which duh, pretty obvious come to think of it :L
Soz, and and for taking the time to reply so early haha

<3 <3 <3 <3