Merge pull request #10 from OatmealDome/patch-2
BFRES: Add missing samplers to the sampler list instead of attributes
This commit is contained in:
commit
b7520ef616
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user