diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-10-10 00:59:41 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-10-10 00:59:41 +0100 |
commit | 439630ae86b01b714574335d4dd2e583f724dba3 (patch) | |
tree | 719374873dad863c4a71c741ed74f143bc52b089 /game/scenary/plant.cpp | |
parent | Fix stencil shadow depth offset (diff) | |
download | ilt-439630ae86b01b714574335d4dd2e583f724dba3.tar.bz2 ilt-439630ae86b01b714574335d4dd2e583f724dba3.tar.xz ilt-439630ae86b01b714574335d4dd2e583f724dba3.zip |
Include foliage yaw rotation in vertex, pass through instead of whole model rotation matrix
Diffstat (limited to 'game/scenary/plant.cpp')
-rw-r--r-- | game/scenary/plant.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/game/scenary/plant.cpp b/game/scenary/plant.cpp index b39c28b..2006225 100644 --- a/game/scenary/plant.cpp +++ b/game/scenary/plant.cpp @@ -2,6 +2,7 @@ #include "location.h" Plant::Plant(std::shared_ptr<const Foliage> type, const Location & position) : - type {std::move(type)}, location {this->type->instances.acquire(position.getRotationTransform(), position.pos)} + type {std::move(type)}, + location {this->type->instances.acquire(position.getRotationTransform(), position.rot.y, position.pos)} { } |