Home Unreal Engine

UDK - Scene Texture - HLSL functions

polycounter lvl 12
Offline / Send Message
Ace-Angel polycounter lvl 12
Hey to all,

I was wondering if anyone knew of an effective way to function the SceneTexture in UDK?

Example of what I mean: I want to blur my SceneTexture, so here is what I did first;
return tex2D(SceneColorTexture, ScreenAlignedUV(UV));

SceneColorTexture is declared in UDK already, so I use that to be able to use my STC as a texture.

After that, I want to blur my Scene, so I do this second;
return tex2Dlod(SceneColorTexture, float4(ScreenAlignedUV(UV)));

I add the LOD function on my Tex2D, declare the UV's as a float4 to be able to Mip it.

However, it seems like it's not working, I tried everything from Bias, Grad to Porj even, it seems like my Tex2D isn't working with SceneTexture.

So anyone has tips? Cheers in advance.

Replies

Sign In or Register to comment.