Custom Texture2D inside AtmosphericFogShader.usf

Hello there!

I’m working on dynamic clouds and I’ve got stuck with one tiny problem.
I have custom noise texture inside the editor, how would I get that texture inside the AtmosphericFogShader.usf?

To be more clear, I have (inside the AtmosphericFogShader.usf):


Texture2D CloudNoiseTexture;
SamplerState CloudNoiseTextureSampler;

But I can’t find how and where would I set my CloudNoiseTexture and CloudNoiseTextureSampler inside the engine, maybe you could point into the right direction…

P.S. This is not material editor question.