SinsOfSeven / TexFx

Creative Commons Attribution Share Alike 4.0 International
96 stars 4 forks source link

Why did my mods with transparency turn out like this #19

Closed Mizuho-OYma closed 1 day ago

Mizuho-OYma commented 2 weeks ago

[Image Removed For Nudity]()

Description: Transparent parts are not rendering, leaving behind just the outline.

SinsOfSeven commented 2 weeks ago

I made a local copy of the image, I can tell you what the issue is, but I can't tell you why it's happening. For some reason or another, the custom shader which redraws the transparency is not activating, or failing to render. If you could provide me with more information, like a copy of the mod ini, as well as what version of TexFx you are using that would be very helpful. It might also help me to know what kind of GPU you have.

SinsOfSeven commented 2 weeks ago

Most likely, this mod is using either the deprecated IntOpacity add-on, or a very small texture. Basically, the texture is so small that the math breaks, and I haven't patched it yet. It should be fixed in the next major update.

Mizuho-OYma commented 2 weeks ago

Barbara.txt I m using the latest version of texfx

Mizuho-OYma commented 2 weeks ago

I've asked others if they have the same problem with this mod, and it turns out that only I have this problem

SinsOfSeven commented 1 day ago

Sorry for the late update, this mod WAS using intOpacity, I am currently adjusting the shader to no longer have this issues with small textures. To do this, I am changing how I set the SamplerState. Though, I'm still experimenting to confirm it's working, this will be in the next release.

SamplerState s15_s : register(s15);
// ->
SamplerState s15_s {
    Filter = MIN_MAG_MIP_LINEAR;
    AddressU = wrap;
    AddressV = wrap;
};