mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Fix hair.shpk
This commit is contained in:
parent
3b21de35cc
commit
a1a880a0f4
1 changed files with 3 additions and 2 deletions
|
|
@ -306,10 +306,11 @@ public class MaterialExporter
|
|||
|
||||
for (var x = 0; x < normalSpan.Length; x++)
|
||||
{
|
||||
var color = Vector4.Lerp(DefaultHairColor, DefaultHighlightColor, maskSpan[x].A / 255f);
|
||||
baseColorSpan[x].FromVector4(color * new Vector4(maskSpan[x].R / 255f));
|
||||
var color = Vector4.Lerp(DefaultHairColor, DefaultHighlightColor, normalSpan[x].B / 255f);
|
||||
baseColorSpan[x].FromVector4(color * new Vector4(maskSpan[x].A / 255f));
|
||||
baseColorSpan[x].A = normalSpan[x].A;
|
||||
|
||||
normalSpan[x].B = byte.MaxValue;
|
||||
normalSpan[x].A = byte.MaxValue;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue