X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2Fmodel.cpp;h=9a5801b2a10af3ce527cfae51f7aa66ed9c7c6c5;hb=dcd54cacda98c2c0f7cf0c7a9131fb858d8ee10a;hp=ed443138e23e0d5746a551c25fd7e1f6956cf198;hpb=efc3c1ba52cbe0fc9a4010c37c2d7c7020a0b481;p=blank.git diff --git a/src/model/model.cpp b/src/model/model.cpp index ed44313..9a5801b 100644 --- a/src/model/model.cpp +++ b/src/model/model.cpp @@ -137,10 +137,10 @@ void Part::Read(TokenStreamReader &in, ResourceIndex &tex_index, const ShapeRegi in.ReadQuat(initial.orientation); } else if (name == "hsl_mod") { in.ReadVec(color_conv); - hsl_mod = glm::tvec3(color_conv * 255.0f); + hsl_mod = EntityMesh::ColorMod(color_conv * 255.0f); } else if (name == "rgb_mod") { in.ReadVec(color_conv); - rgb_mod = glm::tvec3(color_conv * 255.0f); + rgb_mod = EntityMesh::ColorMod(color_conv * 255.0f); } else if (name == "textures") { in.Skip(Token::BRACKET_OPEN); while (in.HasMore() && in.Peek().type != Token::BRACKET_CLOSE) { @@ -193,7 +193,7 @@ void Part::Index(std::vector &index) noexcept { } glm::mat4 Part::LocalTransform(const Instance &inst) const noexcept { - glm::mat4 transform(toMat4(initial.orientation * inst.state[id].orientation)); + glm::mat4 transform(glm::toMat4(initial.orientation * inst.state[id].orientation)); transform[3] = glm::vec4(initial.position + inst.state[id].position, 1.0f); return transform; }