1
0
mirror of synced 2025-01-19 09:17:30 +01:00

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