Skip to content

Commit 740c960

Browse files
committed
Round to nearest colorset row
1 parent 14a511e commit 740c960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xivModdingFramework/Models/ModelTextures/ModelTexture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ public static Half LerpHalf(Half a, Half b, float f)
14391439
public static (int RowId, float Blend) ReadColorIndex(float indexRed, float indexGreen)
14401440
{
14411441
int byteRed = (int) Math.Round(indexRed * 255.0f);
1442-
int rowNumber = (int) (byteRed / (_ColorsetMul));
1442+
int rowNumber = (int) Math.Round(byteRed / (_ColorsetMul));
14431443

14441444
float blendAmount = 1.0f - indexGreen;
14451445

0 commit comments

Comments
 (0)