Repository navigation
v0.123.0
·
150 commits
to master
since this release
Added
- A spline ground can have a different lip on the hills, down the cliffs and under the overhangs. On a
TerrainBand2D,edgeModeBy angle gives the surface up to three lips by how each part faces: a top lip where it faces up (edge*, grass), a side lip on a wall (side*, earth) and an under lip where it faces down (under*, rock), each with its own image, width and colour, andflatAngledecides where a top turns into a side. The default stays one lip all along, so existing grounds draw as they did. A new page, Ground Along a Spline, describes the component. - One sprite animation can play in every look a sprite library has. A sheet clip (
.esanim, format 1.6) can name the picture its sheet takes from a library (Library category and Library label in the clip's Details), and aSpriteAnimatornames the library. The clip then plays on that library's sheet with the same cells and timing, so one walk cycle serves every outfit; where there is no library, or it lacks the picture, the clip's own sheet plays. A library is now held in memory with every texture it names, so aSpriteResolverswap is a lookup, not a load. - A flipbook's frames can name library pictures, so a clip of separate images plays in every look. A frame in an
.esanim(format 1.7) can carry alabel, looked up in the clip'scategoryor the frame's own, and aSpriteAnimatorwith alibrarydraws each frame with the picture the library has for it, at the picture's own size when the clip owns size. A frame with a texture too plays it where there is no library; one with only a label is skipped there. In the Flipbook editor, set the clip's Frame category, then give frames a Library label, or add a frame that only names a picture. The edit viewport plays them the way Play does. A sheet clip's Library category and label can now be typed in either order. - Name pictures by category and label in a sprite library, and draw one with a SpriteResolver. A sprite library (
.esspritelib) groups named textures: an Outfit category with Red and Blue, a Head with Happy and Sad. ASpriteResolveron a sprite names a library, a category and a label, and the sprite is drawn with that picture. The same names in another library are another look of the same character, with nothing else changed. A cooked build carries the textures a library names. Add one from the Content Browser's New menu (which now also offers a physical material) and edit it in Details. A SpriteResolver's category and label are picked from the library's own names. - Choose decals and particles by surface. A physical material now names a
footstepEffectand animpactEffect, each a prefab: a puff of dust, sparks, a bullet hole, debris, or all of them in one.playSurfaceImpact(app, hit)plays the impact sound and spawns the impact effect on the surface a ray hit, with the effect's +Y turned onto the surface normal;playMaterialEffectandplaySurfaceEffectspawn one kind of effect. A top-downFootstepswalker spawns the floor's footstep effect at each foot (effecton the walker turns it off). The physical material inspector has a picker for each. - A ray or cast hit now says what it hit is made of, and a top-down walker follows its floor's material. A 3D
raycast,sphereCast,boxCastandraycastAll, and a 2Draycastand shape cast, carrysurfacewhen the thing hit has aSurfaceMaterial(a hit on a terrain is the layer painted strongest there; a thing standing on it is its own material). A physical material also has atrace(ripple,printornone), a sprite with aSurfaceMaterialis a floor forFootsteps, which leave that mark and play the material's footstep sound (soundon the walker turns it off). The physical material inspector edits the surface name, both sounds and the trace. - A body can make the impact sound and effect of what it strikes, on its own. Add
SurfaceImpactto a bullet, a thrown crate or a hammer head: when its 3D contact or 2D hit meets something whose physical material has an impact sound or effect (aSurfaceMaterial, or painted terrain), they play at the contact and the effect's +Y is turned onto the surface.minSpeedsets how hard the strike must be,cooldownkeeps a rattling body from sounding every step, andsound/effectpick which it makes. Also fixed: 2D ray and shape-cast hits from the running physics world now carrysurface, as the documentation said (only a hand-builtPhysics2DAPIdid before). - Ask what a point of the world is made of, and play the sound it makes. A physical material file (
.esphysmat) now also carries asurfacename (grass,metal) and afootstepand animpactsound event.SurfaceMaterialsays what an entity is made of; a terrain's painted layers answer for the ground.groundSurfaceAt(app, x, y, z, hit)gives the material for a ray hit or a foot, the same way in 2D and 3D,registerSurfaceResolverlets a game's own ground (tiles, voxels) answer too, andplaySurfaceSoundplays the footstep or impact at the point. A file written before the new fields still reads. - A quality level that draws below the screen's size can make the picture whole again with a temporal pass instead of a plain stretch. The new
tsreffect works liketaa, with more shift positions per cycle and a history the size of the output, so the detail each shifted frame uncovers is kept: on the Terrain & Water example at half the render scale it comes about 0.2 closer to the supersampled picture than TAA plus the stretch, still and panning. Effects before it run at the drawn size and so cost less; effects after it run at the output's size. A level that uses temporal anti-aliasing and may draw below the output's size putstsrwhere it would have puttaa; at a scale of 1 it is TAA. It runs on WebGL2 and WebGPU alike (a fragment pass, no compute). Its history range and sharpness are settable per effect. - A project sets how long Auto text waits at scale 1 before it goes back from SDF to bitmap glyphs. Project Settings → Game → Runtime → Text → Back to bitmap after (
textBitmapSettlein the runtime block, default 0.4 s, 0 to 10). A pulse that rests at 1 between beats can wait longer, so its glyphs are not rasterized again every cycle; 0 switches back at once. The editor's Play, web and mini-game builds and native hosts all read the same value.
Changed
- Mesh instance staging allocates records and returns the writable range in one step. Meshes without active morph processing also skip initializing unused morph data during collection.
- Sprites that share a material using the built-in shader can batch across textures. Materials used to set blend or depth state keep their painting order and can draw more sprites per call.
- Cloud shadows use less GPU time in scenes with other shadows. The cloud pass clips its draw to the part of the shadow atlas that holds cloud shadows. It preserves the sky shader's atlas coordinates and the cloud shadows it casts on the scene.
- Consecutive draws in the same execution reuse the bound pipeline and its sampler mask. This reduces CPU submission work when many draw commands use the same pipeline.
- Material drawing reuses material and layout lookups. Shader layouts identify frame texture inputs at registration, so each draw can bind the current scene color, scene depth or screen color directly.
- Draw submission looks up material texture overrides by sampler unit. Materials with several texture maps do less lookup work on each draw.
- Large instance groups spend less CPU time on frustum checks as the camera moves. The group bounds rule out planes that cannot clip any of its instances while preserving checks at the view edges.
- Model materials with no emission skip the emissive texture lookup. Model and Ground Blend still sample the emissive map when the material contributes emissive colour.
- Sprite and UI batches reuse quad indices already in the GPU buffer. Ordinary, tiled, and nine-slice sprites save repeated index generation and uploads.
- Full mesh instance uploads reuse the upload buffer as the next comparison snapshot. Moving views that replace every instance row avoid copying that data again on the CPU.
- Large mesh instance groups reuse their visibility selection when the view and its inputs stay the same. Camera changes, instance edits, and distance or detail settings still select the appropriate instances.
- Draw submission reuses zero uniform bindings for optional effects. Consecutive draws without probe lighting, planar reflection or soft clipping share the same bindings. Switching back from an effect restores the zero block.
- WebGPU reuses resolved texture bindings when a set of textures returns within the same pass. Draws that alternate among a small set of materials avoid rebuilding the same view and sampler lists.
- Mesh instance batches reuse rows when the same placements remain visible. Frustum, distance, and detail-level selection can retain their packed instance data across frames when the source records and selection agree.
- WebGPU reuses a render pass's current scissor rectangle for consecutive draws. Clipped sprite groups avoid submitting the same rectangle to the encoder on every draw.
- WebGPU draw submission reuses texture bindings when only uniform buffers or ranges change. Consecutive draws using the same textures avoid resolving those textures and samplers again.
- WebGL and WeChat Mini Game spend less GPU time sampling 3D shadows. The shaders read the shadow atlas at its single texture level, including during soft shadow filtering.
- Sprites using the built-in unlit shader skip light coverage calculations. Materials used for blend or depth state no longer make these sprites check every light during collection.
- Soft 3D shadows take less GPU time in WebGL scenes. The blocker search accumulates the same depths and sample counts without a branch for every tap.
- Soft 3D shadows take less GPU time to find blockers on WebGL and WeChat Mini Game. The shader gets each tap's radius from the original spiral and uses it to calculate the depth bias.
- Sprite collection does less work for nine-slice images and scenes without direct lights. Nine-slice cells share transformed corners, and lit sprites keep their lighting layer without testing each cell when the light list is empty.
- Ground painted with a single layer takes less GPU work to shade. Terrain and Planet keep the same texture detail on that layer while avoiding the calculations used to blend multiple layers.
- The renderer skips draw-list scans for unused scene inputs. Registered shader layouts tell the renderer when the scene color, screen color or scene picture cannot be requested.
- WebGL reuses each vertex layout's buffer slots during draws. The device records the slots when it registers the layout and rejects layouts whose attribute count exceeds the engine limit.
- Large water zones spend less time uploading their first surface. Water bakes now prepare the texture bytes over several frames before the new field reaches the renderer. The same zone data still supplies the visible surface and water queries.
- WebGL reuses the active blend equation when switching materials. Scenes with frequent changes between normal and additive blending issue fewer graphics commands during draw submission.
- Clipped UI batches issue fewer WebGL state calls. Sprites, text, and other draws sharing a mask reuse its rectangle until a draw or scoped clear changes it.
- WebGL reuses stencil state between draws. Scenes with many sprites or UI elements inside stencil masks spend less CPU time submitting draws.
- WebGPU prepares uniform descriptors only when it needs a new bind group. Scenes with many draws that reuse the same resources spend less CPU time on submission after warming the cache.
- WebGPU keeps compatible resource bindings across pipeline switches. Scenes that alternate rendering states such as blend modes spend less CPU time submitting draws when those states share uniforms or textures.
- WebGPU reuses vertex and index buffer bindings across draws in the same render pass. This reduces CPU submission work when several draws use the same buffer ranges and index format.
- Large 3D worlds plan vegetation faster. Biome checks only work out the environment fields they read. The same placement rules apply on the main thread and in planning workers.
- Large terrain scenes stream scenery with fewer stalls. When placement planning runs on the main thread, scenery chunks such as vegetation and distant plants can span several frames. Each chunk appears once it is complete, with the same placements and layout.
Fixed
- Auto Exposure meters scenes with sparse lighting more accurately. Filtering across dark, excluded areas keeps the brightness of nearby measured pixels intact, including on the 8-bit fallback.
- Color Grade preserves linear HDR highlights for later effects and tone mapping. The S-Curve shapes the 0–1 range while keeping detail above it.
- Terrain and cutout meshes wait for their own shaders during asynchronous compilation. The generic preview no longer draws flat terrain tiles, solid leaf cards or other placeholder shapes for materials that deform vertices or use alpha coverage.
- Layered terrain page atlases allocate directly on startup. This removes the blank pixel upload and avoids a shared-heap allocation failure on native when creating the default paired paint atlas. Terrain pages still fill their atlas regions as they become visible.
- Clear weather in Terrain & Water keeps the distant hills visible. Lighter atmospheric haze and ground fog leave more detail around the horizon.
- A text popup with an outline no longer hitches each time it appears or scales in. Three causes: a cleared label's glyph page was released at the next frame, so showing the same text again drew every glyph again; growing a bitmap glyph into its outline took about 12 ms per glyph on a phone; and an Auto label switched from SDF back to bitmap the moment a 0.8 → 1.05 → 1 pop-in passed 1:1, drawing everything a second time in mid-animation. A glyph page no text uses now waits (one per atlas, most recently used), so returning text is not drawn again. Outlines are grown about 2.4× faster with the same pixels. An Auto label goes back to bitmap only after its scale has stayed at 1 for 0.4 s of game time (#249).
- Download on the "new version available" notice works on the project launcher. The startup update check can announce a release before any project is open, and Download asks before taking it, but the launcher had nowhere to show that question, so the click appeared to do nothing. It now opens the confirmation there too.