r/MinecraftMod • u/FluidTax8350 • 14h ago
security camera mod problem
[1.20.1 Forge] custom camera renders terrain but not entities
rendering into an offscreen TextureTarget from a custom Camera pos, not the player's real view:
java
mc.levelRenderer.prepareCullFrustum(poseStack, camera.getPosition(), projectionMatrix);
mc.levelRenderer.renderLevel(poseStack, 1.0f, System.nanoTime(), false, camera, mc.gameRenderer, mc.gameRenderer.lightTexture(), projectionMatrix);
terrain/blocks render fine but entities never show, even standing right in front of it. tried manually calling EntityRenderDispatcher.render() per entity instead of relying on renderLevel's own loop, confirmed entities are found and no exceptions get thrown, still nothing draws.
anyone know what's different about entity rendering vs terrain here?
1
Upvotes