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);
}
}