Skip to content

Commit

Permalink
Update Mesh.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrScautHD committed Dec 31, 2024
1 parent 10b3ae9 commit 1c43dce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bliss/CSharp/Geometry/Mesh.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public void Draw(CommandList commandList, OutputDescription output, Transform tr
this._modelMatrixBuffer.UpdateBuffer(commandList);

// Update color buffer.
for (int i = 0; i < 7; i++) {
for (int i = 0; i < this.Material.GetMaterialMaps().Length; i++) {
Color? mapColor = this.Material.GetMapColor(((MaterialMapType) i).GetName());

if (mapColor.HasValue) {
Expand All @@ -226,7 +226,7 @@ public void Draw(CommandList commandList, OutputDescription output, Transform tr
this._colorBuffer.UpdateBuffer(commandList);

// Update value buffer.
for (int i = 0; i < 7; i++) {
for (int i = 0; i < this.Material.GetMaterialMaps().Length; i++) {
this._valueBuffer.SetValue(i, this.Material.GetMapValue(((MaterialMapType) i).GetName()));
}

Expand Down

0 comments on commit 1c43dce

Please sign in to comment.