1
0
mirror of synced 2024-11-12 02:00:50 +01:00

Merge pull request #10 from OatmealDome/patch-2

BFRES: Add missing samplers to the sampler list instead of attributes
This commit is contained in:
KillzXGaming 2018-11-19 11:21:53 -05:00 committed by GitHub
commit b7520ef616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ namespace FirstPlugin
foreach (var tex in shape.GetMaterial().textures)
{
if (!shd.samplers.ContainsValue(tex.SamplerName))
shd.attributes.Add(tex.SamplerName, tex.SamplerName);
shd.samplers.Add(tex.SamplerName, tex.SamplerName);
}
}