tex2Dlod In dx11 postpass.fx shader enbseries Skyrim SE

about everything
  • Author
  • Message
Offline
Posts: 18
Joined: 19 Dec 2022, 15:05

Re: tex2Dlod In dx11 postpass.fx shader enbseries Skyrim SE

ENBSeries wrote: 06 Jan 2023, 00:07 Noise texture is obsolette thing from very old version, maybe 2008 or something like that, so i don't keep it in dx11 mod. If code which you are using do need noise texture for something, just make new texture in the shader and load it from the file. Something like following:
Texture2D ExampleTexture
<
string UIName = "Example texture";
string ResourceName = "noise.bmp";
>;
SamplerState ExampleSampler
{
Filter = MIN_MAG_MIP_POINT; //MIN_MAG_MIP_LINEAR //filter type depends from which way to use noise texture
AddressU = Wrap;
AddressV = Wrap;
};

If no compiler errors but don't see anything, then in the end of shader function write some code to visualize that shader code do work at all, for example write red color as output. If can't see it, then something wrong with techniques, their names, order. Or matching vertex and pixel shaders.
I probably know the problem. When i installed default enb postpass shader, and entered in enb menu, there was many techniques to choose('Sharp', 'Blur', 'BlurSharp', 'TemporaryRenderTarget'), after that i added new Float4... SV_Target and technique11 for this in code, but it doesnt appears in technique list(i did this in default postpass shader), there are more techniques in code than in enb menu(default shader). Then i installed my ported shader, and there was nothing in techniques in enb menu(except 'DEFAULT').

How to make technique appear in enb menu?
Sorry, im inattentive. I just made ui for technique, chose this and it works perfect
But anyway i dont understand where i can get noise.bmp file? Do you know it?

Offline
User avatar
*blah-blah-blah maniac*
Posts: 17447
Joined: 27 Dec 2011, 08:53
Location: Rather not to say

Re: tex2Dlod In dx11 postpass.fx shader enbseries Skyrim SE

Just make any white noise texture of 256*256 size. I doubt anybody use it at all, it's outdated thing.
_________________
i9-9900k, 64Gb RAM, RTX 3060 12Gb, Win7
Post Reply