mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 13:58:26 +00: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:
commit
b7520ef616
1 changed files with 1 additions and 1 deletions
|
@ -236,7 +236,7 @@ namespace FirstPlugin
|
||||||
foreach (var tex in shape.GetMaterial().textures)
|
foreach (var tex in shape.GetMaterial().textures)
|
||||||
{
|
{
|
||||||
if (!shd.samplers.ContainsValue(tex.SamplerName))
|
if (!shd.samplers.ContainsValue(tex.SamplerName))
|
||||||
shd.attributes.Add(tex.SamplerName, tex.SamplerName);
|
shd.samplers.Add(tex.SamplerName, tex.SamplerName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue