Skip to content

v0.125.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Dec 09:31
· 149 commits to master since this release

Added

  • The scene profiler reports placement triangles by level of detail. The counters include base meshes without LOD alternatives and track the level selected for each submitted mesh.
  • Waves near the eye meet what stands in the water: a breakwater casts a shadow, a cliff gives the swell back, a beach takes it. At quality levels with waterWavelets on (High), each summed wave keeps an amplitude per place and heading on a grid about the eye, stepped on the GPU after Jeschke et al.'s Water Surface Wavelets: amplitudes move at the wave's group speed, land of any kind takes them, a shore mirrors them back as much as it is steep, and they spread across the crests as diffraction does. The water is drawn with the difference this makes, so open water is exactly as before; behind a 4 m breakwater the surface moves about a fiftieth as much as beside it, and in front of a sheer cliff the sea stands 1.27 times as tall as the open sea (a perfect reflector 1.41; WebGL2 and WebGPU). About 0.5 ms of GPU a frame on an RTX 3060. Over shoaling ground the swell slows, turns toward the shore and stands taller, and its crests are held to 0.78 of the depth: on a beach, 1 m deep, 80 m waves stand 1.31 times as tall as at the zone's 20 m edge, linear theory 1.28 (WebGL2 and WebGPU). The small ripples the wind raises and the crests' light go with the swell, so the water in a breakwater's shadow is still, not only lower. Not yet: Waters.sample of the difference.

Changed

  • Repeated model draws reuse their material's standard-lighting decision. The renderer refreshes it when the material or its shader layout changes, and finds ready standard programs without looking up the general program first.
  • Water caustics reuse the visible instances of large placement groups. Moving a group or changing the capture bounds or active distance limits refreshes the selection.
  • Water caustics reuse mesh visibility when its capture window and mesh bounds stay the same. Moving meshes and changes to the capture window are checked against the updated bounds and view.
  • Sky Atmosphere skips noise work where the main cloud layer is empty. The sky, cloud-shadow map and fog shafts share a cloud-density calculation that checks how much the remaining noise can contribute before sampling it.
  • Cut-out meshes pass fewer values through the depth prepass. The prepass carries texture coordinates and vertex opacity for coverage, which reduces shader work for foliage and other cut-out meshes.
  • Mesh rendering skips texture size estimates while texture streaming is off. Turning the feature off clears queued estimates. Turning it back on collects fresh sizes for the current view.
  • Water caustics take less CPU time to prepare in scenes with many meshes. The renderer checks which meshes belong in each caustic receiver pass before resolving their transforms and bounds.
  • Empty placement sets skip draw program selection. When a vegetation or prop set intersects the view but culling leaves no individual instances to draw, the renderer skips looking up the textures and program used to submit its draw.
  • Large foliage sets can finish loading sooner. Independent plant parts load together using the project's asset concurrency setting. Shared assets are acquired once and parts retain their authored order.
  • Terrain and other 3D surfaces above water spend less time preparing the sun's lighting on WebGL2. The renderer skips the underwater caustic path above the highest wave.
  • Directional-only scenes do less work per lit pixel. 2D and 3D surfaces consult the light tile mask only when it can rule out a light. Local lights still use screen tiles where they reduce shading work.
  • Mesh collection skips per-object change checks when the relevant component pool has stayed unchanged. Mesh, instance and transform edits still refresh their retained draw data.
  • Solid meshes can share a shadow draw even when their surface textures differ. The built-in shadow depth pass skips unused surface textures. Cutout shadows and materials that move vertices keep their texture inputs.
  • Terrain & Water draws fewer tree triangles in the meadow. At high quality the sample switches to the first cheaper tree mesh at 50 metres and keeps the 120-metre shadow range. Plant definitions can set their own shadowDistance independently of the mesh switch.
  • Sky, fog and water reuse the frame's primary directional light. The renderer picks the first active directional light once, so pixels can look it up directly.
  • Large scenes spend less CPU time preparing meshes outside the view. The renderer can reject retained meshes from their existing bounds before it looks up their placement data or prepares their draws.
  • Water caustics spend less CPU time checking shared materials. Each receiver pass reuses the material's refraction and vertex deformation rules across the meshes that use it.
  • Mesh shadow receivers combine the tile-count and shadow-strength checks. This reduces the work needed to decide whether to sample a light's shadow map.
  • Cutout model colour and depth passes share one alpha-to-coverage rule. The shared calculation keeps leaf and fence edges aligned between the passes on WebGL2 and WebGPU.
  • Water caustics traverse scene meshes once to prepare their receiver maps. The renderer routes stationary and moving meshes to their own map during the same walk.
  • The renderer does less work preparing dense foliage. Mesh instance sets are filtered before preparing their materials and depth programs, and draw setup writes only the records it submits.
  • WebGL2 skips direct lighting calculations when a light is fully blocked. This saves material shading work in deep shadow while retaining ambient light and partially lit shadows.
  • Outdoor reflections skip unnecessary sky occlusion work. Surfaces without baked sky visibility use the open sky directly. Surfaces with a bake read visibility from their assigned probe or probe grid.
  • Soft shadow shaders reuse precomputed sample distances. WebGL2 and WebGPU use the same table for blocker searches.
  • Standard 3D model materials use a lighter lighting program. Meshes reuse their general program while the lighter program compiles, and live edits that enable material extensions use the general program as soon as they are drawn.
  • Still water uses less GPU time for nearshore wavelets. When there is no transport, the shader reads all four headings from one sample.
  • Terrain virtual texture pages avoid extra paint texture reads. When a baked surface is ready, the terrain shades it without re-reading the layer weights. Steep ground and pages still being baked continue to use the live layers.
  • Terrain and planet meshes fetch fewer height samples when drawing. They use one texel at exact sample centres and reuse the original height when a vertex stays on the same sample during a level-of-detail transition. Between centres, the shader continues to decode all four heights before blending.
  • Terrain hex tiling blends its texture samples with less shader work. Terrain and planet materials use multiplications for the fixed seventh power in their shared blend weights.
  • Terrain virtual textures use smaller atlases on small grounds. Bounded terrain reserves only enough slots for its baked pages, and WebGL can use a smaller atlas when the device has a lower texture-size limit.
  • The Terrain & Water sample submits fewer tree triangles at middle distances. Six tree species use smaller trunk and branch meshes at LOD 1, with their existing leaf meshes and switching distances.
  • The water wave field shares one texture tile across calm levels. Levels too coarse for any wave still blend with their neighbours. The remaining tiles skip phase calculations for waves too short to contribute.
  • Ripples now spread the way they do on water: as a train of rings, the short ones out in front. The ripple grids (the zone's and the rain's) are stepped on the GPU with water's dispersion, omega² = g·k + σ/ρ·k³, through a convolution kernel fitted to the grid, so a drop opens several rings rather than one that keeps its shape, and a band along the window's edge lets waves out instead of reflecting them. rippleSpeed and the rain's Ring Speed now set the pace of a wave eight cells long, every other length scaled with it. Lengths of about 8 to 16 cells run within 10% of water's speed; longer ones run slow. RippleField on the CPU steps the same way and is what the GPU passes are checked against.
  • Distant water tiles are drawn by a smaller program. Past the quality level's waterNearDistance (32, 64 or 128 m), whole tiles of a water zone are drawn by the Water shader compiled without the ripple and rain windows, which are only ever near, and with waterFarReflectionSteps reflection steps (4, 6 or 8) reaching as far as the near ones. A tile under a ripple window stays near. A project with no quality policy keeps every reflection step and loses only the code no distant pixel runs. waterNearDistance: 0 draws all of it as before.
  • The water mesh is lifted by a wave field baked on the GPU each frame. The field is a stack of levels about the eye, each twice as coarse as the one inside it, whose texels lie on the surface mesh's own vertices: a vertex reads exactly the height Waters.sample gives there, so floating bodies still ride the waves they are drawn on (checked against the drawn surface on WebGL2 and WebGPU). The shading still sums the waves per pixel. The field is the one place later surface motion (dispersive ripples, waves bent round rocks, a sea from its spectrum) is written to. A device that cannot draw into a float texture sums the waves in the shader as before.
  • Wavelets update faster along absorbing shores. The shader skips reflection direction and amplitude sampling when the shore returns no wave energy.
  • Water spends less CPU time submitting batches of shoreline wavelets. When waves settle across a water zone, each batch reuses the same material inputs for its successive steps.
  • Shoreline wavelet updates use less GPU time. Each group computes its first direction with sine and cosine and uses fixed rotations for the other three.
  • Water spends less GPU time advancing interior wavelets. The shader checks the full range of the samples once when every sample fits within the previous grid.
  • Water wavelets reuse adjacent amplitudes from each texture sample. The near-water simulation reads its amplitude grid fewer times when spreading waves between headings.
  • Shoreline wave reflections use less GPU time. Two adjacent reflection headings reuse a texture read when they share a packed texel.
  • Water spends less GPU time settling waves across large zones. The settling shader uses distance steps and open-sea boundary values directly.
  • Shoreline wavelet updates use less GPU time. Propagation and diffraction reuse the atlas tile origin for each group of wave headings.
  • WebGPU skips preparing underwater sunlight for surfaces above the highest waves. This reduces the lighting cost for dry terrain and meshes near water.
  • World generation spends less time looking up previously planned cells. The planner uses compact keys for common grid coordinates and keeps the full coordinates outside that range.
  • World generation reads the height and slope of a terrain point from the same triangle in one lookup. This reduces ground sampling work when planning vegetation and scenery, both on the main thread and in planning workers.
  • World generation shares a ground sample between placement checks and surface alignment. Dense vegetation and scenery take less time to plan, with authored field and zone overrides still applied.
  • Lights with zero Shadow Strength skip surface shadow sampling. This reduces shading work on 2D and 3D surfaces when a light's shadows are fully faded out.

Fixed

  • Time of Day aims the light that can illuminate the scene. Disabled and zero-strength directional lights no longer prevent an active fallback light from following the sun.
  • A fully faded directional light gives up its shadow tiles. Clouds and water caustics follow the same active sun as the sky and fog when a light pulses out.
  • Auto Exposure meters the same areas as render resolution changes. Bright windows or strips of sky no longer dominate the average just because a higher resolution places them on the sampling grid.
  • World-anchored clouds follow large camera jumps immediately. The sky uses realtime clouds while it refills the baked panorama from the new camera position.
  • Baked upper clouds stay anchored to the world as the camera moves. Both cloud layers share the same camera offset, and the sky shaders and baking paths use the project's kilometre scale when a scene leaves it unset.
  • Sky clouds update when their masks change. Removing a mask restores procedural coverage immediately. Replacing a mask refreshes the baked panorama and discards the cloud and fog history that used the old mask.
  • GPU profiling keeps complete frame samples. If GPU timing runs out of queries or cannot allocate one, the profiler retains the latest complete result and resumes on the next frame.
  • The waterline can finish preparing while the caustic shader compiles at night. The renderer updates the optical surface and clears the caustic receiver until the sun can light the water again.
  • Distant fog appears as foreground objects move away. Height Fog recomputes volumetric light where the previous frame's ray ended in front of the fog.
  • Height Fog keeps distant haze visible through narrow gaps. Distant surfaces keep their volumetric light between nearby objects that sit in front of the fog.
  • Detailed renderer benchmarks report full GPU pass times. The terrain and draw submission tools combine each frame's shader segments into pass totals and retain the individual timings for comparison.
  • Headless mini-game tests can resize the game canvas. The browser host forwards viewport changes to the game so resize and orientation checks exercise the runtime's canvas sizing.
  • Height Fog keeps its sun glow when volumetric sunlight is unavailable. The Volumetric Light setting no longer dims the glow when using a manual sun, when the scene has no shining directional light, or when the volumetric range ends before the fog starts.
  • Height Fog's Max Opacity also dims volumetric sunlight. Lowering the setting reduces the fog glow around silhouettes. At zero the renderer skips both height fog passes.
  • Sunlight in height fog stays even across distant surfaces. Over flat terrain, each volumetric light step now integrates the fog density over its full span. Jitter still samples shadows and clouds, while the amount of fog in a step stays consistent.
  • Height fog keeps better visibility in backlit mist. Weather scales the fog's sunlight once and preserves the scene's blend of diffuse glow and volumetric light. Fog skips the volumetric light pass when Sun Glow is zero.
  • Cloud shafts fade in as the sun rises. Height Fog uses the same horizon transition as ground cloud shadows, so fog no longer darkens abruptly as the sun clears the horizon.
  • Sky lighting on surfaces better matches the visible sky near sunrise and sunset. The environment bake now samples the denser air near the ground using the sky shader's spacing, so it no longer overestimates how much low sunlight reaches it.
  • Rebuilding water wavelets works on native. The SDK releases the old shaders through the same resource manager as the web runtime, so a wavelet reset can finish and resume rendering.
  • Orthographic fog starts at the camera plane. Distance fog and height fog no longer wash out objects drawn behind that plane. Volumetric light also preserves the fog on neighboring objects in front of the camera.
  • Instanced meshes retain texture detail in orthographic views. Texture streaming now sizes placements by projected scale, so moving the camera toward or away from the mesh keeps its texture demand steady. Changing orthographic zoom updates the demand.
  • Planet cloud shadows update as the camera crosses the local horizon. Moving around a spherical world refreshes the shadow tile when its cloud plane changes, so the ground follows the sky on the first frame.
  • Clouds shade volumetric fog on spherical worlds. Fog now uses the sky's local horizon to trace sunlight through cloud layers, including at the poles.
  • Height Fog follows the curvature of planets. Distant terrain and the sky receive haze based on the altitude along the whole view ray, including near a planet's horizon.
  • Sky Atmosphere lights spherical terrain from its local sky. With Light the Scene enabled, ambient lighting and reflections follow the same horizon as the visible sky, including at the poles.
  • Planet skies and cloud shadows follow the camera's local up. This restores daylight at the south pole and lets clouds shade terrain on the sides of a planet.
  • Volumetric light is steadier in thin fog on planets. Height Fog integrates density along each step, while terrain and clouds still shade the light at the sampled positions.
  • Narrow silhouettes retain contrast in shadowed volumetric fog. Fog lighting filters nearby samples using their surface depth and traces the pixel's own ray when its surface is missing from the reduced-resolution buffer.
  • Sky lighting and baked clouds follow the rendered directional light. Scenes over the light limit use the same sun for the visible sky, ambient lighting, reflections and cloud baking.
  • Clouds and volumetric fog update their lighting when the sun direction jumps. Clouds and fog discard stale lighting from previous frames, and baked clouds render live while the panorama refreshes.
  • Layered Terrain no longer loses the WebGL context in Chrome and Edge on Windows. The layer shader and the sculpt brush indexed a vec4 by a loop counter or a uniform; ANGLE's D3D11 backend failed to recompile that pixel shader at the first ground draw, and the page lost WebGL2 until reloaded. They now pick the component with a static selection (#253).
  • Moving across streamed terrain uses less memory and upload bandwidth. Terrain retains height and paint versions with their resident pages and skips uploads for worker results the current view has moved past.
  • Upper clouds now shade volumetric light in Height Fog. Cloud Shafts follow both sky layers, including skies that only have upper clouds.
  • Thin ridges retain their outlines in volumetric fog. Height Fog keeps light scattered along a distant slope from washing over the edge of a nearer surface.
  • Volumetric fog updates immediately when a nearby surface moves out of view. Each history sample is matched against the surface's reprojected depth before its colour contributes to the current frame.
  • Thin ridges keep their contrast in unoccluded volumetric fog. Fog light uses each pixel's surface depth, keeping a narrow ridge distinct from the brighter fog on the slope behind it.
  • Volumetric fog preserves thin edges when it renders below screen resolution. The fog pass and its composite now round depth coordinates the same way, keeping the sampled light attached to the surface that produced it.
  • Water caustics render correctly on WebGPU with the GPU wave field enabled. The optical surface shader keeps the same wave height function when it samples the field or computes waves directly.
  • Wavelets settle correctly when wave speed is zero. Changing playback speed keeps the settled shoreline pattern. Changes that do require a new pattern reuse compatible GPU resources.
  • A WeChat export runs on phones again instead of failing with compiling function underran the stack. WeChat on a phone compiles wasm with an interpreter that has no SIMD opcodes, so the first call into an engine function that used one failed once a scene loaded, while the developer tool (V8) ran it. WeChat now ships the mini-game engine and side modules built without wasm SIMD, as Douyin does (node build-tools/cli.js build -t quickgame and the *-quickgame modules in a source checkout), and the EmscriptenGLX engine is built without it too. Kuaishou and Bilibili keep the build with SIMD.
  • The GLSL-to-WGSL translator recognizes the engine's current shared shadow taps. The generated contract now exposes the same frame uniform as the shaders.