X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2Fmodel.cpp;fp=src%2Fmodel%2Fmodel.cpp;h=451433bc7e8296d38b37c551883598553ab13248;hb=f430ad789fe620ad2e8b2b2b99af868372791295;hp=55050e0b72d856ce57894787705c0630cbc981a3;hpb=4da2ae6f12d7cf4594edb2d560c5c112e9bcd094;p=blank.git diff --git a/src/model/model.cpp b/src/model/model.cpp index 55050e0..451433b 100644 --- a/src/model/model.cpp +++ b/src/model/model.cpp @@ -27,6 +27,10 @@ Instance::~Instance() { } +glm::mat4 Instance::EyesTransform() const noexcept { + return model->GetEyesPart().GlobalTransform(*this); +} + void Instance::Render(const glm::mat4 &M, DirectionalLighting &prog) { model->RootPart().Render(M, *this, prog); } @@ -35,7 +39,8 @@ void Instance::Render(const glm::mat4 &M, DirectionalLighting &prog) { Model::Model() : id(0) , root() -, part() { +, part() +, eyes_id(0) { }