1
0
mirror of synced 2024-12-02 19:17:24 +01:00

Load shrink/expand filter modes for switch bfres

This commit is contained in:
KillzXGaming 2019-05-14 21:56:15 -04:00
parent 1479a62f24
commit dbf12e5fdc
4 changed files with 9 additions and 0 deletions

Binary file not shown.

View File

@ -680,6 +680,15 @@ namespace FirstPlugin
texture.wrapModeW = (int)mat.Samplers[id].WrapModeW;
texture.SamplerName = mat.SamplerDict.GetKey(id);
if (mat.Samplers[id].ShrinkXY == Sampler.ShrinkFilterModes.Points)
texture.minFilter = 1;
else
texture.minFilter = 0;
if (mat.Samplers[id].ExpandXY == Sampler.ExpandFilterModes.Points)
texture.magFilter = 1;
else
texture.magFilter = 0;
string useSampler = texture.SamplerName;
//Use the fragment sampler in the shader assign section. It's usually more accurate this way