BFRES: Add missing samplers to the sampler list instead of attributes

This commit is contained in:
OatmealDome 2018-11-18 20:35:19 -05:00 committed by GitHub
parent 190f47767d
commit fa89b3d839
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);
}
}