A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
feat(post): Color Grade has split toning, an S-curve and lift
yhhfeae4dbd608b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1aa82b449..81cfd22e0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -25,6 +25,7 @@ published separately; it ships inside the editor.- **The sky lights the scene.** Sky Atmosphere's **Light the Scene** makes the sky the scene's environment: every Ambient light that names no environment of its own lights with it, its diffuse light from the dome and the clouds and its reflection on metal and wet ground, scaled by the light's colour and intensity as an imported one is. The sky is worked out again as it changes (the sun moving, a weather coming in, clouds drifting), at most once a second; with clouds that takes about 20 ms on a desktop. The sun's disc is left out, since the directional light the sky follows is its direct light. Below the horizon it is the ground, lit by the sky's sun and dome and giving back **Ground Albedo** of it (0.2 by default, between asphalt and grass; Unreal's atmosphere uses 0.4), so a wall in shadow takes the sunlit ground's bounce as well as the sky's: under a high clear sun that doubles its fill, under a low hazy one it adds little. Off by default, so a scene already lit by hand looks as it did.- **Rooms stay dark under a sky that changes (sky occlusion).** With **Sky occlusion** on in the Lighting settings (`BakedLighting.skyOcclusion`), a probe bake keeps how much of the sky each probe sees instead of the sky itself: the probes hold the lights and their bounces, and the sky the frame has now (a live Sky Atmosphere, a weather, an environment) is added through what each probe sees of it, to the diffuse light and to the sky's reflection. A ball inside a roofed room measured 119 where the baked sky gave it 150, and a ball outside kept its light. A `.esprobes` baked this way carries `skyVisibility`; one without it lights as before. Probes are read per object, as Unity's light probes are: one large mesh spanning indoors and out takes one value.+- **Color Grade has split toning, an S-curve and lift.** **Shadow Tint** and **Highlight Tint** multiply the dark and the bright tones (blended by luma between **Tone Low** and **Tone High**), **S-Curve** blends in a smoothstep about the picture's range and **Lift** adds a tinted black level, all on the picture as the display shows it (put the grade after Tonemap). Defaults are white, white, 0 and black, so no existing grade changes. A reference game's neutral-grey shed turned out to be a scene as orange as ours, graded teal in the shadows and lifted toward teal in the blacks; color-grade-split checks the three tones on both backends.- **A captured probe volume drives reflections too.** What a shiny surface inside a capturing `LightProbeVolume` reflects is the capture, box-projected, rather than the outdoor sky: the SDK prefilters each capture into a column of one reflection atlas beside the sky and the frame uses it wherever no baked `ReflectionProbe` is. A mesh now picks its reflection box by its world bounds (its centre, else the smallest box it overlaps), as probes do, so an imported level's walls whose origin sits outside the room still reflect it. A capture face now counts as done only once it is drawn. probe-capture-reflection checks a chrome ball shows the green wall on its right and the magenta one on its left, on both backends.- **A probe volume can be filled at run time.** `LightProbeVolume.capture` draws the scene from the box's centre all round (one small face a frame, no post-processing), reads it back and lights everything inside with it in place of a bake — the walls as the lamps light them now and the sky through the openings, which a bake cannot see on meshes without lightmap UVs. `captureInterval` recaptures (each pass a bounce). Unreal's real-time Sky Light / Reflection Capture; probe-capture checks a white ball between a red wall, a blue wall and a green ceiling takes each colour on the side that faces it, on both backends.- **Lamps can fall off as real ones do.** A Point or Spot light's **Inverse Square** falls it off as 1/distance² in metres (the project's units per metre), with `intensity` the light one metre away and `radius` only where it is let go, eased out by glTF's and three.js's window — Unreal's Use Inverse Squared Falloff. A lamp pools under itself instead of washing a room evenly; point-inverse-square checks 0.5, 0.177 and 0.045 under, 1 m and 2 m from a lamp. glTF punctual lights import this way (candela over π, range scaled with the model).diff --git a/docs/astro/src/content/docs/graphics/post-processing.mdx b/docs/astro/src/content/docs/graphics/post-processing.mdxindex b0f7501c2..1f6eeff86 100644--- a/docs/astro/src/content/docs/graphics/post-processing.mdx+++ b/docs/astro/src/content/docs/graphics/post-processing.mdx@@ -16,7 +16,7 @@ several can stack in one frame at no extra target cost beyond the passes.|---|---|---|| `bloom` | Glow on bright areas | `threshold`, `intensity`, `radius` || `tonemap` | ACES filmic tonemapping | `exposure` |-| `colorGrade` | Exposure / contrast / saturation / white balance | `exposure`, `contrast`, `saturation`, `temperature`, `tint` |+| `colorGrade` | Exposure / contrast / saturation / white balance, split toning, S-curve and a tinted black level | `exposure`, `contrast`, `saturation`, `temperature`, `tint`, `shadowTint`, `highlightTint`, `toneLow`, `toneHigh`, `curve`, `lift` || `lutGrade` | Color grading through a lookup-table texture, on scene values in the chain | `u_lut` (texture), `intensity` || `displayLut` | A look read off a lookup table by the picture as the display shows it, in the last pass after the output transform | `u_lut` (texture), `intensity` || `agx` | The AgX view transform Blender uses: scene-linear in, display-linear out, so it goes last and the output transform stays `none`. Brings its own table | `contrast` (the look: 1 is AgX Base, 1.2 is Medium High Contrast) |@@ -118,6 +118,20 @@ camera, so walking under a cloud and out of it works. The sky is in kilometres asays how many of the scene's units make one. At 0 (the default) the effect is exactly as it was. The shadow falls on surfaces only; theclouds are still drawn where there is sky.+### Split toning and lifted blacks++A film look is mostly where its colour goes in the shadows and the highlights, and Color Grade has the three controls for it. They act on the picture+as the display shows it, so put the grade **after Tonemap**: before it, 0 to 1 is only part of the scene's light.++- **Shadow Tint** and **Highlight Tint** multiply what is dark and what is bright, blended by luma between **Tone Low** and **Tone High** (0.03 and 0.55+ by default). White is no change; they are multipliers and are not colour-managed, so `(0.80, 1.01, 1.13)` in the shadows and `(1.07, 1.0, 0.90)` in the+ highlights is teal and warm, and may go above 1.+- **S-Curve** blends in a smoothstep about the picture's range: shadows sink a little, highlights lift. 0 is off.+- **Lift** is a tinted black level, added to every tone at a tenth of its colour, so `(0.06, 0.085, 0.11)` lifts the blacks by about `(0.006, 0.0085, 0.011)`+ toward teal and a scene with no black left reads as air rather than as ink.++The defaults are white, white, black and 0, so an existing grade does not change.+### Rain, wet ground and puddles`rain` is a storm in two parts. **Falling rain** is three layers of thin slanted streaks scrolling down thediff --git a/docs/astro/src/content/docs/zh-cn/graphics/post-processing.mdx b/docs/astro/src/content/docs/zh-cn/graphics/post-processing.mdxindex 92b0d9397..3828b047d 100644--- a/docs/astro/src/content/docs/zh-cn/graphics/post-processing.mdx+++ b/docs/astro/src/content/docs/zh-cn/graphics/post-processing.mdx@@ -15,7 +15,7 @@ Estella 通过 ping-pong 帧缓冲运行全屏后处理。加一个 `PostProcess|---|---|---|| `bloom` | 亮部辉光 | `threshold`、`intensity`、`radius` || `tonemap` | ACES filmic 色调映射 | `exposure` |-| `colorGrade` | 曝光 / 对比度 / 饱和度 / 白平衡 | `exposure`、`contrast`、`saturation`、`temperature`、`tint` |+| `colorGrade` | 曝光 / 对比度 / 饱和度 / 白平衡,分离色调、S 曲线和带色相的黑位 | `exposure`、`contrast`、`saturation`、`temperature`、`tint`、`shadowTint`、`highlightTint`、`toneLow`、`toneHigh`、`curve`、`lift` || `lutGrade` | 通过查找表纹理(LUT)调色,作用在效果链里的场景值上 | `u_lut`(纹理)、`intensity` || `displayLut` | 在最后一个通道里、输出变换之后,按画面在显示器上的样子从查找表取出的调色 | `u_lut`(纹理)、`intensity` || `agx` | Blender 使用的 AgX 视图变换:输入场景线性、输出显示线性,所以放在最后,输出变换保持 `none`。自带查找表 | `contrast`(观感:1 是 AgX Base,1.2 是 Medium High Contrast) |@@ -101,6 +101,17 @@ Estella 通过 ping-pong 帧缓冲运行全屏后处理。加一个 `PostProcess把**云影**调到 0 以上,从每个表面朝太阳发出的光线会穿过天空绘制的云层逐步前进,用的是同一份密度,所以云下的地面更暗、更斑驳,天空开阔处则被照亮。被挡掉的是太阳直射光;环境光不受影响。开启云影也会把云固定在世界里而不是跟着相机走,所以人可以走进云影再走出来。天空以千米为单位,场景用自己的单位:**每千米世界单位**说明场景里多少个单位是一千米。为 0(默认值)时效果与之前完全一样。阴影只落在表面上;云仍然只画在有天空的地方。+### 分离色调与抬高的黑位++胶片感大半来自颜色在阴影和高光里的去向,颜色分级为此有三项控制。它们作用在显示器所见的画面上,所以要把分级放在**色调映射之后**;在它之前,0 到 1 只是场景光的一部分。++- **阴影染色**和**高光染色**分别乘在暗处和亮处,按亮度在**色调下限**和**色调上限**(默认 0.03 和 0.55)之间过渡。白色表示不变;它们是乘数,不做色彩管理,+ 阴影里的 `(0.80, 1.01, 1.13)` 和高光里的 `(1.07, 1.0, 0.90)` 就是偏青和偏暖,数值可以大于 1。+- **S 曲线**混入围绕画面范围的平滑阶梯曲线:阴影略沉,高光略提。0 为关闭。+- **抬升**是带色相的黑位,按其颜色的十分之一加在所有色调上,`(0.06, 0.085, 0.11)` 会把黑位朝青色抬高约 `(0.006, 0.0085, 0.011)`,让没有纯黑的场景像空气而不是墨。++默认值是白、白、黑和 0,所以现有的分级不会变。+### 雨、潮湿的地面与水坑`rain` 是由两部分组成的暴雨。**落下的雨**是三层在屏幕上向下滚动的细斜线,每层站在自己的距离上:比该层更近的表面会挡住diff --git a/fixtures/scenes/color-grade-split.esscene b/fixtures/scenes/color-grade-split.esscenenew file mode 100644index 000000000..8eb27f0a0--- /dev/null+++ b/fixtures/scenes/color-grade-split.esscene@@ -0,0 +1,199 @@+{+ "version": 4,+ "name": "Color Grade Split Tone",+ "entities": [+ {+ "id": 0,+ "name": "Camera",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 10+ }+ }+ },+ {+ "type": "Camera",+ "data": {+ "projectionType": 1,+ "orthoSize": 300,+ "isActive": true,+ "priority": 0+ }+ }+ ],+ "visible": true+ },+ {+ "id": 1,+ "name": "Dark",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": -150,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "Sprite",+ "data": {+ "size": {+ "x": 100,+ "y": 100+ },+ "color": {+ "r": 0.05,+ "g": 0.05,+ "b": 0.05,+ "a": 1+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 2,+ "name": "Mid",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "Sprite",+ "data": {+ "size": {+ "x": 100,+ "y": 100+ },+ "color": {+ "r": 0.35,+ "g": 0.35,+ "b": 0.35,+ "a": 1+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 3,+ "name": "Bright",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 150,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "Sprite",+ "data": {+ "size": {+ "x": 100,+ "y": 100+ },+ "color": {+ "r": 0.8,+ "g": 0.8,+ "b": 0.8,+ "a": 1+ }+ }+ }+ ],+ "visible": true+ },+ {+ "id": 4,+ "name": "PostProcess",+ "parent": null,+ "children": [],+ "components": [+ {+ "type": "Transform",+ "data": {+ "position": {+ "x": 0,+ "y": 0,+ "z": 0+ }+ }+ },+ {+ "type": "PostProcessVolume",+ "data": {+ "isGlobal": true,+ "priority": 0,+ "weight": 1,+ "blendDistance": 0,+ "shape": "box",+ "size": {+ "x": 5,+ "y": 5+ },+ "effects": [+ {+ "type": "colorGrade",+ "enabled": true,+ "uniforms": {+ "u_toneLow": 0.1,+ "u_toneHigh": 0.6+ },+ "colors": {+ "u_shadowTint": {+ "r": 0.5,+ "g": 0.8,+ "b": 1,+ "a": 1+ },+ "u_highlightTint": {+ "r": 1,+ "g": 0.8,+ "b": 0.5,+ "a": 1+ },+ "u_lift": {+ "r": 0,+ "g": 0,+ "b": 0.5,+ "a": 1+ }+ }+ }+ ]+ }+ }+ ],+ "visible": true+ }+ ]+}diff --git a/fixtures/scenes/color-grade-split.textures.json b/fixtures/scenes/color-grade-split.textures.jsonnew file mode 100644index 000000000..0967ef424--- /dev/null+++ b/fixtures/scenes/color-grade-split.textures.json@@ -0,0 +1 @@+{}diff --git a/sdk/src/postprocess/effects.ts b/sdk/src/postprocess/effects.tsindex ec7121479..be0d818b1 100644--- a/sdk/src/postprocess/effects.ts+++ b/sdk/src/postprocess/effects.ts@@ -246,6 +246,18 @@ registerEffect({{ name: 'u_saturation', label: 'Saturation', min: 0, max: 2, step: 0.01, defaultValue: 1, neutralValue: 1 },{ name: 'u_temperature', label: 'Temperature', min: -1, max: 1, step: 0.01, defaultValue: 0 },{ name: 'u_tint', label: 'Tint', min: -1, max: 1, step: 0.01, defaultValue: 0 },+ // Split toning and the black level act on the picture as the display shows it, so they belong AFTER Tonemap; before it, 0 to 1+ // is only part of the scene's light and the tints would act on that part.+ { name: 'u_toneLow', label: 'Tone Low', min: 0, max: 1, step: 0.01, defaultValue: 0.03 },+ { name: 'u_toneHigh', label: 'Tone High', min: 0, max: 1, step: 0.01, defaultValue: 0.55 },+ { name: 'u_curve', label: 'S-Curve', min: 0, max: 1, step: 0.01, defaultValue: 0, neutralValue: 0 },+ ],+ colors: [+ // Multipliers, not colour-managed: white leaves a tone as it is, teal in the shadows and warm in the highlights is the cinema look.+ { name: 'u_shadowTint', label: 'Shadow Tint', defaultValue: { r: 1, g: 1, b: 1, a: 1 } },+ { name: 'u_highlightTint', label: 'Highlight Tint', defaultValue: { r: 1, g: 1, b: 1, a: 1 } },+ // Added to every tone, a tenth of the colour: lifted blacks that carry a hue.+ { name: 'u_lift', label: 'Lift', defaultValue: { r: 0, g: 0, b: 0, a: 1 } },],});diff --git a/sdk/src/postprocess/sources/basic.ts b/sdk/src/postprocess/sources/basic.tsindex 02e27c3e6..987e98ce9 100644--- a/sdk/src/postprocess/sources/basic.ts+++ b/sdk/src/postprocess/sources/basic.ts@@ -580,6 +580,12 @@ void main() {#pragma param u_saturation float default(1) range(0,2)#pragma param u_temperature float default(0) range(-1,1)#pragma param u_tint float default(0) range(-1,1)+#pragma param u_shadowTint color default(1,1,1,1)+#pragma param u_highlightTint color default(1,1,1,1)+#pragma param u_toneLow float default(0.03) range(0,1)+#pragma param u_toneHigh float default(0.55) range(0,1)+#pragma param u_curve float default(0) range(0,1)+#pragma param u_lift color default(0,0,0,1)#pragma fragmentprecision highp float;@@ -603,6 +609,18 @@ void main() {// Contrast about mid-grey.${contrastGlsl}+ // Split toning: what is dark is multiplied by the shadow tint and what is bright by the highlight tint, blended by luma between+ // Tone Low and Tone High. White is no change. Meant for the picture after Tonemap, where 0 to 1 is what the display shows.+ float tone = dot(c, vec3(0.2126, 0.7152, 0.0722));+ c *= mix(u_shadowTint.rgb, u_highlightTint.rgb, smoothstep(u_toneLow, max(u_toneHigh, u_toneLow + 1e-4), tone));++ // S-curve: the smoothstep about the picture's range, so shadows sink and highlights lift; Curve is how much of it.+ vec3 cc = clamp(c, 0.0, 1.0);+ c = mix(c, cc * cc * (3.0 - 2.0 * cc), u_curve);++ // Lift: a tinted black level, added to everything (a tenth of the colour, so a small lift is a usable colour).+ c += u_lift.rgb * 0.1;+// Saturation about Rec.709 luma.float luma = dot(c, vec3(0.2126, 0.7152, 0.0722));c = mix(vec3(luma), c, u_saturation);@@ -624,6 +642,14 @@ void main() {${contrastWgsl}+ let tone = dot(c, vec3f(0.2126, 0.7152, 0.0722));+ c *= mix(mc.u_shadowTint.rgb, mc.u_highlightTint.rgb, smoothstep(mc.u_toneLow, max(mc.u_toneHigh, mc.u_toneLow + 1e-4), tone));++ let cc = clamp(c, vec3f(0.0), vec3f(1.0));+ c = mix(c, cc * cc * (3.0 - 2.0 * cc), mc.u_curve);++ c += mc.u_lift.rgb * 0.1;+let luma = dot(c, vec3f(0.2126, 0.7152, 0.0722));c = mix(vec3f(luma), c, mc.u_saturation);diff --git a/sdk/tests/postprocess.test.ts b/sdk/tests/postprocess.test.tsindex c8ac0f217..149ed8b0b 100644--- a/sdk/tests/postprocess.test.ts+++ b/sdk/tests/postprocess.test.ts@@ -410,10 +410,15 @@ describe('PostProcess API', () => {const def = getEffectDef('colorGrade');expect(def?.label).toBe('Color Grade');const defaults = Object.fromEntries((def?.uniforms ?? []).map(u => [u.name, u.defaultValue]));- // Identity: 2^0=1, contrast 1, saturation 1, no white-balance shift.+ // Identity: 2^0=1, contrast 1, saturation 1, no white-balance shift, no S-curve; the tints are white and the lift black.expect(defaults).toEqual({u_exposure: 0, u_contrast: 1, u_saturation: 1, u_temperature: 0, u_tint: 0,+ u_toneLow: 0.03, u_toneHigh: 0.55, u_curve: 0,});+ const colours = Object.fromEntries((def?.colors ?? []).map(c => [c.name, c.defaultValue]));+ expect(colours.u_shadowTint).toEqual({ r: 1, g: 1, b: 1, a: 1 });+ expect(colours.u_highlightTint).toEqual({ r: 1, g: 1, b: 1, a: 1 });+ expect(colours.u_lift).toEqual({ r: 0, g: 0, b: 0, a: 1 });});it('colorGrade takes contrast about the mid-grey of the colour space it runs in', () => {diff --git a/sdk/tests/shader-twins.test.ts b/sdk/tests/shader-twins.test.tsindex 59498e099..b995540ed 100644--- a/sdk/tests/shader-twins.test.ts+++ b/sdk/tests/shader-twins.test.ts@@ -53,7 +53,7 @@ describe('embedded .esshader structure', () => {it('found the filter, effect and grid sources', () => {expect(CASES.filter((c) => c.name.startsWith('filters.ts')).length).toBe(1);expect(CASES.filter((c) => c.name.startsWith('spriteFilter.ts')).length).toBe(2);- expect(CASES.filter((c) => c.name.startsWith('postProcessEffects.ts')).length).toBe(44);+ expect(CASES.filter((c) => c.name.startsWith('postProcessEffects.ts')).length).toBe(46);expect(CASES.filter((c) => c.name.startsWith('editorGridRenderer.ts')).length).toBe(1);});diff --git a/tools/renderScenes.mjs b/tools/renderScenes.mjsindex 86212995e..834a7ec98 100644--- a/tools/renderScenes.mjs+++ b/tools/renderScenes.mjs@@ -611,6 +611,10 @@ export const SCENES = [{ id: "overlay-camera-linear", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_SCENE: "/scenes/overlay-camera-linear.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/overlay-camera-linear.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "2", ESTELLA_VERIFY_COLORSPACE: "linear", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.5,\"y\":0.5,\"rgb\":[128,128,128],\"tol\":8},{\"x\":0.133,\"y\":0.5,\"rgb\":[128,0,0],\"tol\":12},{\"x\":0.85,\"y\":0.15,\"rgb\":[0,0,0],\"tol\":10}]" } },// Post-process chain guards — bloom's first CI pixel coverage. The gamma scene pins the LDR multi-pass chain; the linear scene is the HDR discriminator: threshold 1.5 sits above anything an 8-bit chain can store, so glow OUTSIDE the sprite (x=0.64) proves over-range light survived the float intermediates — the same scene blooms NOTHING in gamma mode.// Since the pyramid bloom the glow has a long tail: the HDR scene (intensity 2, radius 3) lights the far corner too, and the gamma scene's falls to black within a third of the frame.+ // Colour Grade's split toning, S-curve and lift (acting on what the display shows): three flat greys, a blue-ish shadow tint, a warm+ // highlight tint and a blue lift. The dark grey takes the shadow tint and the lift, the bright one the highlight tint, the middle one+ // half and half: (0.05,0.05,0.05) -> (6,10,26), (0.35) -> (67,71,80), (0.8) -> (204,163,115).+ { id: "color-grade-split", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_SCENE: "/scenes/color-grade-split.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/color-grade-split.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "6", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.25,\"y\":0.5,\"rgb\":[6,10,26],\"tol\":6},{\"x\":0.5,\"y\":0.5,\"rgb\":[67,71,80],\"tol\":8},{\"x\":0.75,\"y\":0.5,\"rgb\":[204,163,115],\"tol\":8}]" } },{ id: "bloom-ldr", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_SCENE: "/scenes/bloom-ldr.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/bloom-ldr.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "10", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.61,\"y\":0.5,\"rgb\":[0,58,0],\"tol\":25},{\"x\":0.7,\"y\":0.5,\"rgb\":[0,12,0],\"tol\":10},{\"x\":0.85,\"y\":0.5,\"rgb\":[0,0,0],\"tol\":12}]" } },{ id: "hdr-bloom", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_PLAY: "1", ESTELLA_VERIFY_COLORSPACE: "linear", ESTELLA_VERIFY_SCENE: "/scenes/hdr-bloom.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/hdr-bloom.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "10", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.5,\"y\":0.5,\"rgb\":[0,255,0],\"tol\":25},{\"x\":0.64,\"y\":0.5,\"rgb\":[0,208,0],\"tol\":35},{\"x\":0.85,\"y\":0.5,\"rgb\":[0,76,0],\"tol\":25}]" } },// A small hot spot, and the glow it throws: as far out along a diagonal as along an axis, so the halo is round. A blur