1
0
mirror of synced 2024-11-28 09:20:57 +01:00

Set the calculated normals to the proper channel

This commit is contained in:
KillzXGaming 2019-12-14 14:29:43 -05:00
parent 6c0bc069d9
commit 09a13a574b

View File

@ -66,7 +66,7 @@ namespace FirstPlugin
public void SetVertexColorNormals() public void SetVertexColorNormals()
{ {
for (int v = 0; v < vertices.Count; v++) for (int v = 0; v < vertices.Count; v++)
vertices[v].col = new Vector4( vertices[v].col2 = new Vector4(
vertices[v].nrm.X * 0.5f + 0.5f, vertices[v].nrm.X * 0.5f + 0.5f,
vertices[v].nrm.Y * 0.5f + 0.5f, vertices[v].nrm.Y * 0.5f + 0.5f,
vertices[v].nrm.Z * 0.5f + 0.5f, vertices[v].nrm.Z * 0.5f + 0.5f,