Commit Graph
1134 Commits
Author SHA1 Message Date
Connor Colenso 8c8d346560 Add a particle API for mods that size or draw particles themselves
A render scale per particle for the ones the instancer batches straight from their fields, and the pack's
particle program for particles drawn outside the effect renderer. Any number of mods can add a scale source,
the factors multiply.
2026-11-16 16:21:20 +00:00
Connor Colenso e59e4662f2 Let a terrain draw use its own model space as the pack's block grid
Packs pick parts of some blocks by where a pixel sits inside its world block (cauldron water, end portal
frame eyes, brewing stands), which goes wrong for geometry drawn turned or off the grid. While a local grid
is on, the camera and matrix uniforms describe a world where the draw's model space is the block grid. View
space, clip space and the shadow map come out the same. Not on the SDL GPU backend.

The remapping is one table in LocalGridFrame, applied where the custom uniform inputs are built, so the Iris
uniform classes stay as they are. Custom uniforms the pack builds from remapped ones get evaluated again too,
and smooth() smooths from the frame's starting value when it's called twice in one frame so it doesn't step
twice.

beginLocalGrid hands back a LocalGrid to close, and warns once if the modelview was left changed. Also adds the
at_midBlock location to TerrainRendering for packs that don't need the grid.
2026-11-16 16:21:20 +00:00
Connor Colenso 6dda240a34 Add positional dynamic lights for things that aren't entities
Mods can make a light at any position, move it and change it, and it lights terrain and entities like a held
torch. Also a way to look up lights near a point and Angelica's falloff.

A light can be set to show under a shaderpack without the shader force option (setLitUnderShaderpacks), for
lights that stand in for real blocks a pack can't light itself. Entity and held item lights still need shader
force, and dynamic lights turned off still means off.

A light can also reach further than a held torch, or less far (setReach, 0-15). It falls off like block light
then, so 15 is what a real block of that luminance gives. Fractions work, for a lamp in something drawn smaller
than life. The default stays the old 7.75 block torch falloff. A positional light only tracks the chunk sections
its light gets into, up to 27 at reach 15, so a longer reach rebuilds more when it moves. A change in reach
under 0.1 doesn't rebuild anything, like a move under 0.1 blocks.

Switching dynamic lights, shader force or the pack now rebuilds the sections the lights were in. Before that a
light that went dark stayed in the terrain until something else rebuilt it, and with a pack on that would leave
entity lights behind next to the ones that stay lit. A light that sat still also never came back.

The per section source filter now counts the cells a block outside the section too (14.8 from the middle
instead of 13.9), the same cells the section tracking rebuilds for.
2026-11-16 16:21:20 +00:00
Connor Colenso 9aea999a86 Add shadow casters so mod geometry can draw into the shadow map
Casters run in the shadow pass with the solid shadows and again after translucent terrain, so geometry drawn
from a TESR or the world draw stage can shadow like terrain.
2026-11-15 22:21:54 +00:00
Connor Colenso 72657e5cfb Add a world draw stage for mod geometry inside the world pass
RenderWorldLastEvent comes after the pack's composite passes, so anything drawn there misses its lighting,
fog and shadows. Drawers registered here run right after block entities, once per Forge pass.
2026-11-15 22:21:54 +00:00
Connor Colenso 30a0291cca Add a terrain API for mods that bake blocks outside the chunk mesher
TerrainRendering lets geometry drawn outside the chunk renderer (moving structures, previews) use the
pack's terrain programs, materials, layer overrides and AO and shading settings, and bake the same way the
mesher does. TerrainLighter runs the mesher's smooth and flat light pipelines over any block access.
Vanilla AO can be turned off per thread while baking.
2026-11-15 22:21:54 +00:00
Jason Mitchell 996fb54cb0 Add a weather API for mods and instance their weather (#2364)
* Mods can supply their own weather columns, drawn alongside vanilla rain and snow
* Mod weather renders instanced with and without shader packs
* NotFine leaf settings apply to Biomes O' Plenty leaves
* Flyby can start in a named biome and fly in survival
2.2.46
2026-11-13 15:03:24 -08:00
Eldrinn Elantey d1e7838cf9 Render fluids stored by LiquidLogged in the chunk mesher (#2356)
* Render fluids stored by LiquidLogged in the chunk mesher

* Update dependencies.gradle.kts
2026-11-13 14:05:32 -08:00
Alexdoru a12d2bb4b0 fix world client leak in MixinRenderBlockConnectedTexturesEthereal (#2360) 2026-11-11 12:33:01 -08:00
Eldrinn Elantey 60d1a3de3c Restore FluidLogged fluid rendering (#2354)
* Restore FluidLogged fluid rendering

* Check region type before reading logged fluid
2026-11-08 18:39:33 -08:00
DarkShadow44 367f9d9161 Fix compatibility with LOTR mod (#2353) 2026-11-08 14:56:07 -08:00
Jason Mitchell d69fd20a8b Tag profiler captures with the Angelica version (#2351)
* RenderDoc, Tracy, async-profiler, spark
2026-11-07 22:49:01 -08:00
Jason Mitchell 9493d630a0 Emulate clip distances on devices without them (#2348) 2.2.45 2026-11-07 13:42:32 -08:00
Jason Mitchell aee989d23b Fix flat item icons on drawers and barrels with shader packs (#2347) 2026-11-07 12:59:19 -08:00
Jason Mitchell 3876218405 Fix GLES crashing at startup and rendering black (#2346) 2026-11-06 21:30:30 -08:00
Armisael5andEclipse-Sol a6d014a9eb Fix falling block texture (#2336)
Co-authored-by: Eclipse-Sol <[email protected]>
2026-11-06 15:25:15 -05:00
Eldrinn Elantey 52444510d0 Move the tilde glyph down in the modern ascii font sheet (#2343) 2026-11-06 09:05:22 -08:00
DarkXFast 8840c2109f Fix replayed "glDrawElements" display lists losing their normals and texcoords (#2328) 2026-11-02 08:40:12 -08:00
Alexdoru e64a4e7214 Fix world client leak in PositionEntries$PlayerPosition (#2327) 2026-11-02 08:35:41 -08:00
Jason Mitchell e46eb46343 Add Tracy frame images (#2326) tracy-v0.14.1-1 2.2.44 2026-11-01 15:09:13 -08:00
Jason Mitchell 5da38c9180 Fix black patches covering the world (#2325) 2026-11-01 12:45:06 -08:00
Rad 85bde5827f Update Polish translation (#2321) 2026-11-01 12:21:47 -08:00
kurrycat ea2d34589e fix thaum mirror render corruption (#2324) 2026-11-01 12:09:09 -08:00
Jason Mitchell 2b46b4f602 Fix StellarSky crash and corrupted player model (#2315) 2.2.43 2026-10-30 20:15:40 -07:00
Jason Mitchell 8e099e9529 Free chunk-meshing memory when leaving a world (#2313) 2.2.42 2026-10-29 19:00:35 -07:00
Jason Mitchell bbbdc12b2a Cut terrain rebuilds and draw-buffer churn (#2312) 2026-10-29 15:07:17 -07:00
Jason Mitchell 08aa37712f Only animate PBR textures that are visible (#2310) 2.2.41 2026-10-28 20:46:51 -07:00
Jason Mitchell ed6dd12db7 Move deferred chunk meshing back off the main thread (#2306) 2.2.40 2026-10-26 22:16:14 -07:00
Jason Mitchell 91e67f8d5d Split up GLStateManager and add public GLState API (#2305) 2026-10-26 21:11:49 -07:00
Jason Mitchell 9bbb0537ee Backport modern F3 debug screen + debug overlays (#2301) 2.2.39 2026-10-25 22:41:56 -07:00
Jason Mitchell a019b7eed8 Update PR template to be in line with the GTNH org 2.2.38 2026-10-25 19:35:59 -07:00
Eclipse-Sol 1772e9eae2 Mipmap stuff again (#2300) 2026-10-25 19:25:54 -07:00
Eclipse-Sol 17a2ed7f37 Initial commit for gui-item-supersampling (#2299) 2026-10-25 13:10:15 -07:00
madoha 34ed1d101b Update Japanese Localizations (#2297) 2026-10-24 23:11:39 -07:00
KolyaandJason Mitchell 7cc9cea337 Cache the tile entity lightmap lookup for one tick (#2296)
Co-authored-by: Jason Mitchell <[email protected]>
2026-10-24 23:10:04 -07:00
Jason Mitchell 6c5e146f96 Fix GL core tests that depended on test order and JIT timing (#2298) 2026-10-24 22:32:13 -07:00
Kolya ea50e0a0b6 Bunch of rendering fixes (#2295) 2026-10-24 19:24:57 -07:00
Eclipse-Sol 713509a87b Entity Shadow Replay (#2294) 2.2.37 2026-10-24 16:21:33 -07:00
Eclipse-Sol 102c6cad86 Initial commit for glsm-exit-state-capture (#2292) 2026-10-24 15:58:17 -07:00
Eclipse-Sol 8af9340be6 Initial commit for shadow-pass-camera (#2291) 2026-10-22 20:38:28 -07:00
Eclipse-Sol fc8d3e8b89 Keep armor and held-item glint materials separate (#2289) 2026-10-22 19:29:22 -07:00
Jason Mitchell e84c8c8d7a Stop stalls on some GPUs when closing the questbook (#2286) 2.2.36 2026-10-22 00:24:31 -07:00
Eclipse-Sol 73d61d385c initial commit for gl-fences (#2285) 2026-10-21 20:12:01 -07:00
Wackypocket 69124e3f2f Stop capping mailbox present mode to the refresh rate (#2279) 2026-10-21 19:47:18 -07:00
VortexSo4andVortexSo4 98703a11be Read only the mcmeta in the interpolated icon check (#2284)
Co-authored-by: VortexSo4 <[email protected]>
2026-10-21 17:32:34 -07:00
brandyn 67ca46a220 why min 16 (#2278) 2026-10-21 17:25:35 -07:00
Jason Mitchell a037a96fa4 Update to Celeritas 2.5.13-GTNH (#2283) 2026-10-21 15:36:58 -07:00
Jason Mitchell ed260a34c4 Fix tests & SDL-GPU framebuffers losing attachments on resize or texture delete (#2282) 2026-10-21 15:12:32 -07:00
Jason Mitchell e98c927a93 Reduce test duplication (#2276) 2026-10-19 00:43:29 -07:00
Jason Mitchell b446968e66 Instance animated TESRs and let mods register shaders for batched TESRs (#2275) 2026-10-18 23:59:55 -07:00