Merge pull request #848 from Astazium/main

ObjParser and GBuffer refactor + fixes
This commit is contained in:
MihailRis 2026-10-15 23:18:29 +03:00 • committed by GitHub
commit c64659e06d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 212 additions and 279 deletions

View file

@ -425,7 +425,7 @@ static void debug_render_skeleton(
}
void Entities::renderDebug(
LineBatch& batch, const Frustum* frustum, const DrawContext& pctx
LineBatch& batch, const Frustum* frustum, const DrawContext& pctx, entityid_t fpsEntity
) {
{
auto ctx = pctx.sub(&batch);
@ -453,12 +453,15 @@ void Entities::renderDebug(
}
}
{
auto view = registry->view<Transform, rigging::Skeleton>();
auto view = registry->view<EntityId, Transform, rigging::Skeleton>();
auto ctx = pctx.sub(&batch);
ctx.setDepthTest(false);
ctx.setDepthMask(false);
ctx.setLineWidth(2);
for (auto [entity, transform, skeleton] : view.each()) {
for (auto [entity, eid, transform, skeleton] : view.each()) {
if (eid.uid == fpsEntity) {
continue;
}
auto config = skeleton.config;
if (config == nullptr) {
continue;

View file

@ -58,7 +58,7 @@ public:
void update(float delta);
void renderDebug(
LineBatch& batch, const Frustum* frustum, const DrawContext& ctx
LineBatch& batch, const Frustum* frustum, const DrawContext& ctx, entityid_t fpsEntity
);
void render(
const Assets& assets,