X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2Fcomposite.cpp;fp=src%2Fmodel%2Fcomposite.cpp;h=b2e7022524badf60be55898efa7bb1d33dfb1aa0;hb=957b1df87d9a692c517a269221da81227100240e;hp=f43b7264a57ef60463fc600997a7d71a7ff34ac5;hpb=1daba5b2fa044c1822d104fb65eeb88b6aeb5499;p=blank.git diff --git a/src/model/composite.cpp b/src/model/composite.cpp index f43b726..b2e7022 100644 --- a/src/model/composite.cpp +++ b/src/model/composite.cpp @@ -151,7 +151,8 @@ void Skeletons::Load() { { CuboidShape shape(skeletons[0]->Bounds()); shape.Vertices(buf, 3.0f); - buf.colors.resize(shape.VertexCount(), { 1.0f, 1.0f, 0.0f }); + buf.hsl_mods.resize(shape.VertexCount(), { 0.0f, 1.0f, 1.0f }); + buf.rgb_mods.resize(shape.VertexCount(), { 1.0f, 1.0f, 0.0f }); models[0].Update(buf); skeletons[0]->SetNodeModel(&models[0]); } @@ -159,7 +160,8 @@ void Skeletons::Load() { CuboidShape shape(skeletons[1]->Bounds()); buf.Clear(); shape.Vertices(buf, 0.0f); - buf.colors.resize(shape.VertexCount(), { 0.0f, 1.0f, 1.0f }); + buf.hsl_mods.resize(shape.VertexCount(), { 0.0f, 1.0f, 1.0f }); + buf.rgb_mods.resize(shape.VertexCount(), { 0.0f, 1.0f, 1.0f }); models[1].Update(buf); skeletons[1]->SetNodeModel(&models[1]); } @@ -167,7 +169,8 @@ void Skeletons::Load() { StairShape shape(skeletons[2]->Bounds(), { 0.4f, 0.4f }); buf.Clear(); shape.Vertices(buf, 1.0f); - buf.colors.resize(shape.VertexCount(), { 1.0f, 0.0f, 1.0f }); + buf.hsl_mods.resize(shape.VertexCount(), { 0.0f, 1.0f, 1.0f }); + buf.rgb_mods.resize(shape.VertexCount(), { 1.0f, 0.0f, 1.0f }); models[2].Update(buf); skeletons[2]->SetNodeModel(&models[2]); } @@ -175,7 +178,8 @@ void Skeletons::Load() { CuboidShape shape(skeletons[3]->Bounds()); buf.Clear(); shape.Vertices(buf, 2.0f); - buf.colors.resize(shape.VertexCount(), { 1.0f, 0.25f, 0.5f }); + buf.hsl_mods.resize(shape.VertexCount(), { 0.0f, 1.0f, 1.0f }); + buf.rgb_mods.resize(shape.VertexCount(), { 1.0f, 0.25f, 0.5f }); models[3].Update(buf); skeletons[3]->SetNodeModel(&models[3]); }