Skip to content

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.

feat(render): a cutout's edge is antialiased

esengine0894ccf3fdf7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b4b235ba1..57ee2b2e1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -16,6 +16,7 @@ published separately; it ships inside the editor.
### Added
+- **A cutout's edge is antialiased.** With multisampling on (the default), a material with an alpha cutoff turns its alpha into multisample coverage along the cut instead of testing it, so leaves, grass and fences stop stair-stepping at their edges. A shader opts in with `#pragma coverage <param>`, which the built-in Model shader declares for `u_alphaCutoff`; a material without a cutoff, and a blended one, draw as before. A project in gamma space with no post-processing has no multisampled target, and there the cut stays hard.
- **Project Health names the textures a material reads as data while they are still decoded as colour.** In a linear project, a normal map or packed roughness marked sRGB is bent on the way in; models imported before 0.74 left every one of them that way. The report lists them in one finding and its Fix turns sRGB off on all of them. Which texture params hold numbers is the shader's to say: `#pragma param … texture … texel(data)`, which the built-in Model and Lit shaders now declare. The same report names settings in `project.esproject` that nothing reads.
## [0.74.0] - 2026-09-27
diff --git a/docs/astro/src/content/docs/graphics/materials.mdx b/docs/astro/src/content/docs/graphics/materials.mdx
index 57992c6f4..8ae649efb 100644
--- a/docs/astro/src/content/docs/graphics/materials.mdx
+++ b/docs/astro/src/content/docs/graphics/materials.mdx
@@ -88,6 +88,7 @@ One file holds every stage plus its metadata, separated by pragmas:
| `#pragma param …` | A reflected material parameter (table below). |
| `#pragma switch NAME [default(on)]` | Material-facing static permutation toggle (a `#define`). |
| `#pragma feature NAME` | Engine-chosen compile-time variant keyword. |
+| `#pragma coverage PARAM` | While the float param `PARAM` is above zero, the shader's output alpha is coverage — a cutout's alpha sharpened to about a texel around the cutoff. An opaque draw into a multisampled target then turns it into multisample coverage, so the cutout's edge is antialiased instead of stair-stepped. The built-in Model shader declares `u_alphaCutoff`. |
| `#pragma vertex` / `#pragma fragment` … `#pragma end` | Stage bodies. **The vertex block is optional for 2D domains** — the engine injects the canonical stage. |
| `#include "path"` | Textual include (resolved by the host). |
diff --git a/docs/astro/src/content/docs/zh-cn/graphics/materials.mdx b/docs/astro/src/content/docs/zh-cn/graphics/materials.mdx
index 68af75ff5..36720fbc2 100644
--- a/docs/astro/src/content/docs/zh-cn/graphics/materials.mdx
+++ b/docs/astro/src/content/docs/zh-cn/graphics/materials.mdx
@@ -73,6 +73,7 @@ std140 uniform 块,于是 CPU 能按名字设置、并安全地送到 GPU。一
| `#pragma domain <D>` | `Unlit`(默认)、`Lit`、`PostProcess`、`UI`。`Lit` 注入光照 uniform + helper。旧拼写 `Unlit2D` / `Lit2D` 仍按这两个域加载。 |
| `#pragma param …` | 反射的材质参数(见下表)。 |
| `#pragma switch NAME [default(on)]` | 材质可控的静态排列开关(一个 `#define`)。 |
+| `#pragma coverage PARAM` | 浮点参数 `PARAM` 大于零时,着色器输出的 alpha 就是覆盖率——镂空的 alpha 在阈值附近锐化到约一个纹素宽。不透明物体画进多重采样目标时,它会转成多重采样覆盖率,镂空边缘就有抗锯齿而不是台阶。内置 Model 着色器声明了 `u_alphaCutoff`。 |
| `#pragma feature NAME` | 引擎选择的编译期变体关键字。 |
| `#pragma vertex` / `#pragma fragment` … `#pragma end` | Stage 代码体。**2D 域的顶点段可省略**——引擎注入规范顶点段。 |
| `#include "path"` | 文本 include(由宿主解析)。 |
diff --git a/fixtures/scenes/corpus-alpha-modes.esscene b/fixtures/scenes/corpus-alpha-modes.esscene
new file mode 100644
index 000000000..af1e25de3
--- /dev/null
+++ b/fixtures/scenes/corpus-alpha-modes.esscene
@@ -0,0 +1,90 @@
+{
+ "version": 4,
+ "name": "CorpusAlphaModes",
+ "entities": [
+ {
+ "id": 0,
+ "name": "Camera",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 0,
+ "y": 0.6,
+ "z": 6.5
+ }
+ }
+ },
+ {
+ "type": "Camera",
+ "data": {
+ "projectionType": 0,
+ "fov": 50,
+ "nearPlane": 0.1,
+ "farPlane": 100,
+ "isActive": true,
+ "priority": 0
+ }
+ }
+ ]
+ },
+ {
+ "id": 1,
+ "name": "Sun",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 0,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 1,
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "intensity": 1
+ }
+ }
+ ]
+ },
+ {
+ "id": 2,
+ "name": "Sky",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Light",
+ "data": {
+ "type": 2,
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "intensity": 0.4
+ }
+ }
+ ]
+ }
+ ]
+}
diff --git a/fixtures/scenes/corpus-alpha-modes.textures.json b/fixtures/scenes/corpus-alpha-modes.textures.json
new file mode 100644
index 000000000..0967ef424
--- /dev/null
+++ b/fixtures/scenes/corpus-alpha-modes.textures.json
@@ -0,0 +1 @@
+{}
diff --git a/fixtures/scenes/corpus-cutout-edge.esscene b/fixtures/scenes/corpus-cutout-edge.esscene
new file mode 100644
index 000000000..2f7149a4e
--- /dev/null
+++ b/fixtures/scenes/corpus-cutout-edge.esscene
@@ -0,0 +1,96 @@
+{
+ "version": 4,
+ "name": "CorpusCutoutEdge",
+ "entities": [
+ {
+ "id": 0,
+ "name": "Camera",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 3.0,
+ "y": 0.45,
+ "z": 2.2
+ },
+ "rotation": {
+ "x": 0,
+ "y": 0,
+ "z": 0.6560590289905073,
+ "w": 0.754709580222772
+ }
+ }
+ },
+ {
+ "type": "Camera",
+ "data": {
+ "projectionType": 0,
+ "fov": 50,
+ "nearPlane": 0.1,
+ "farPlane": 100,
+ "isActive": true,
+ "priority": 0
+ }
+ }
+ ]
+ },
+ {
+ "id": 1,
+ "name": "Sun",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Transform",
+ "data": {
+ "position": {
+ "x": 0,
+ "y": 0,
+ "z": 0
+ }
+ }
+ },
+ {
+ "type": "Light",
+ "data": {
+ "type": 1,
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "intensity": 1
+ }
+ }
+ ]
+ },
+ {
+ "id": 2,
+ "name": "Sky",
+ "parent": null,
+ "children": [],
+ "visible": true,
+ "components": [
+ {
+ "type": "Light",
+ "data": {
+ "type": 2,
+ "color": {
+ "r": 1,
+ "g": 1,
+ "b": 1,
+ "a": 1
+ },
+ "intensity": 0.4
+ }
+ }
+ ]
+ }
+ ]
+}
diff --git a/sdk/src/render/builtinShaders.ts b/sdk/src/render/builtinShaders.ts
index 6dd1763dc..c69d619b8 100644
--- a/sdk/src/render/builtinShaders.ts
+++ b/sdk/src/render/builtinShaders.ts
@@ -340,6 +340,7 @@ const MODEL = `#pragma shader "Model"
#pragma param u_occlusionMap texture default(white) texel(data)
#pragma param u_occlusionStrength float default(1) range(0,1) ui(slider)
#pragma param u_alphaCutoff float default(0) range(0,1) ui(slider)
+#pragma coverage u_alphaCutoff
#pragma param u_metallic float default(0) range(0,1) ui(slider)
#pragma param u_roughness float default(1) range(0,1) ui(slider)
#pragma param u_metallicRoughnessMap texture default(white) texel(data)
@@ -365,7 +366,14 @@ out vec4 fragColor;
// Metal-roughness packing is glTF's: roughness in green, metal in blue.
void main() {
vec4 base = texture(u_textures[0], v_texCoord) * v_color * u_tint;
- if (base.a < u_alphaCutoff) discard;
+ // A cutout's alpha becomes coverage: sharpened to about a texel around the
+ // cutoff, so alpha-to-coverage feathers the edge instead of stair-stepping it.
+ float alpha = base.a;
+ if (u_alphaCutoff > 0.0) {
+ alpha = (base.a - u_alphaCutoff) / max(fwidth(base.a), 1e-4) + 0.5;
+ if (alpha <= 0.0) discard;
+ alpha = min(alpha, 1.0);
+ }
#ifdef MESH_NORMALS
highp vec3 N = perturbNormal(normalize(v_worldNormal), v_worldXYZ, v_texCoord,
sampleNormal(u_normalMap, v_texCoord));
@@ -386,7 +394,7 @@ void main() {
// specular 1: a glTF material reflects unless KHR_materials_specular says less.
vec3 lit = applyLightingPBR(base.rgb, N, P, viewDirection(P),
u_metallic * mr.b, u_roughness * mr.g, 1.0, ao);
- fragColor = vec4(lit + u_emissive.rgb * texture(u_emissiveMap, v_texCoord).rgb, base.a);
+ fragColor = vec4(lit + u_emissive.rgb * texture(u_emissiveMap, v_texCoord).rgb, alpha);
}
#pragma end
@@ -397,7 +405,14 @@ void main() {
// draw read instance 0's indirect light — one probe volume for the lot.
g_probeSlot = v.v_probeSlot;
let base = textureSampleLevel(t0, s0, v.v_texCoord, 0.0) * v.v_color * mc.u_tint;
- if (base.a < mc.u_alphaCutoff) { discard; }
+ // Before any discard: a derivative needs every fragment of its quad.
+ let edge = max(fwidth(base.a), 1e-4);
+ var alpha = base.a;
+ if (mc.u_alphaCutoff > 0.0) {
+ alpha = (base.a - mc.u_alphaCutoff) / edge + 0.5;
+ if (alpha <= 0.0) { discard; }
+ alpha = min(alpha, 1.0);
+ }
#ifdef MESH_NORMALS
var N = perturbNormal(normalize(v.v_worldNormal), v.v_worldXYZ, v.v_texCoord,
sampleNormal(u_normalMap, u_normalMap_s, v.v_texCoord));
@@ -418,7 +433,7 @@ void main() {
mc.u_metallic * mr.b, mc.u_roughness * mr.g, 1.0, ao);
let emit = mc.u_emissive.rgb
* textureSampleLevel(u_emissiveMap, u_emissiveMap_s, v.v_texCoord, 0.0).rgb;
- return vec4f(lit + emit, base.a);
+ return vec4f(lit + emit, alpha);
}
#pragma end
`;
diff --git a/src/esengine/bindings/MaterialBindings.cpp b/src/esengine/bindings/MaterialBindings.cpp
index 024ebaea6..314643f0c 100644
--- a/src/esengine/bindings/MaterialBindings.cpp
+++ b/src/esengine/bindings/MaterialBindings.cpp
@@ -46,6 +46,7 @@ static MaterialUniformLayout buildMaterialLayout(const resource::ParsedShader& p
const RenderContext& rc) {
MaterialUniformLayout layout;
layout.blockSize = parsed.materialBlockSize;
+ layout.coverageParam = parsed.coverageParam;
for (const auto& p : parsed.properties) {
if (!p.fromParam) continue;
if (p.type == resource::ShaderPropertyType::Texture) {
diff --git a/src/esengine/renderer/draw/DrawList.cpp b/src/esengine/renderer/draw/DrawList.cpp
index 84d18829d..5e5356ee1 100644
--- a/src/esengine/renderer/draw/DrawList.cpp
+++ b/src/esengine/renderer/draw/DrawList.cpp
@@ -240,6 +240,7 @@ void DrawList::execute(GfxDevice& device, TransientBufferPool& buffers,
desc.cullEnabled = cmd.cull != 0;
desc.cullFront = cmd.cull == 2;
desc.depthBias = cmd.depth_bias;
+ desc.alphaToCoverage = !desc.blendEnabled && materials.alphaIsCoverage(cmd.material_id);
if (lastHandle == PipelineHandle::Invalid || !(desc == lastDesc)) {
lastHandle = device.createPipeline(desc);
diff --git a/src/esengine/renderer/rhi/GLDevice.cpp b/src/esengine/renderer/rhi/GLDevice.cpp
index 355e61c13..608ff0489 100644
--- a/src/esengine/renderer/rhi/GLDevice.cpp
+++ b/src/esengine/renderer/rhi/GLDevice.cpp
@@ -377,6 +377,7 @@ void GLDevice::resetStateCache() {
bound_vao_ = 0;
scissor_test_ = -1;
current_depth_bias_ = 0;
+ alpha_to_coverage_ = -1;
current_framebuffer_ = 0;
timer_query_state_ = 0;
}
@@ -943,6 +944,11 @@ void GLDevice::backendSetPipeline(u32 id, const PipelineDesc& desc) {
if (desc.cullEnabled) setCullFace(desc.cullFront);
setDepthBias(desc.depthBias);
applyStencilMode(desc.stencil);
+ if (static_cast<i8>(desc.alphaToCoverage) != alpha_to_coverage_) {
+ if (desc.alphaToCoverage) glEnable(GL_SAMPLE_ALPHA_TO_COVERAGE);
+ else glDisable(GL_SAMPLE_ALPHA_TO_COVERAGE);
+ alpha_to_coverage_ = static_cast<i8>(desc.alphaToCoverage);
+ }
current_pipeline_id_ = id;
current_stencil_mode_ = desc.stencil;
diff --git a/src/esengine/renderer/rhi/GLDevice.hpp b/src/esengine/renderer/rhi/GLDevice.hpp
index 5686e5103..15546a8cd 100644
--- a/src/esengine/renderer/rhi/GLDevice.hpp
+++ b/src/esengine/renderer/rhi/GLDevice.hpp
@@ -220,6 +220,7 @@ private:
u32 active_texture_unit_ = 0;
u32 bound_texture_[kTextureSlots] = {};
i16 current_depth_bias_ = 0;
+ i8 alpha_to_coverage_ = -1; ///< -1: unknown, so the next pipeline sets it.
int scissor_test_ = -1; // tri-state: -1 unknown, 0 disabled, 1 enabled
struct VaoCache {
diff --git a/src/esengine/renderer/rhi/PipelineState.hpp b/src/esengine/renderer/rhi/PipelineState.hpp
index 6ac469b32..b145d37d9 100644
--- a/src/esengine/renderer/rhi/PipelineState.hpp
+++ b/src/esengine/renderer/rhi/PipelineState.hpp
@@ -55,6 +55,9 @@ struct PipelineDesc {
/// buffer's resolution — the only way to say which of two COPLANAR surfaces
/// wins. Drives both the constant and the slope-scaled term.
i16 depthBias = 0;
+ /// Output alpha becomes multisample coverage (a cutout's feathered edge). Only
+ /// meaningful on an opaque draw into a multisampled target; ignored elsewhere.
+ bool alphaToCoverage = false;
bool operator==(const PipelineDesc&) const = default;
};
diff --git a/src/esengine/renderer/store/MaterialStore.hpp b/src/esengine/renderer/store/MaterialStore.hpp
index ee22d1d9e..9b8ed5291 100644
--- a/src/esengine/renderer/store/MaterialStore.hpp
+++ b/src/esengine/renderer/store/MaterialStore.hpp
@@ -88,6 +88,9 @@ struct MaterialTextureBinding {
/** @brief A shader's layout: std140 block (scalar/vector params) + texture sampler slots. */
struct MaterialUniformLayout {
u32 blockSize = 0;
+ /// The param whose value above zero makes output alpha coverage (see
+ /// ParsedShader::coverageParam); empty when the shader declares none.
+ std::string coverageParam;
std::vector<MaterialParamSlot> params;
std::vector<MaterialTextureSlot> textures;
@@ -260,6 +263,19 @@ public:
return it != materials_.end() ? &it->second : nullptr;
}
+ /// Whether @p materialId's output alpha is coverage now: its shader names a
+ /// coverage param and this material holds it above zero.
+ bool alphaIsCoverage(u32 materialId) const {
+ const MaterialRecord* m = find(materialId);
+ const MaterialUniformLayout* layout = m ? layoutFor(m->shaderRef) : nullptr;
+ if (!layout || layout->coverageParam.empty()) return false;
+ const MaterialParamSlot* slot = layout->find(layout->coverageParam);
+ if (!slot || slot->offset + sizeof(f32) > m->uboBytes.size()) return false;
+ f32 value = 0.0f;
+ std::memcpy(&value, m->uboBytes.data() + slot->offset, sizeof(f32));
+ return value > 0.0f;
+ }
+
/// The registered #pragma-param layout for a shader program, or nullptr.
/// The post-process pipeline reads it to pack pass params through the same
/// reflected MaterialConstants block a material would use.
diff --git a/src/esengine/renderer/webgpu/WebGPUDevice.cpp b/src/esengine/renderer/webgpu/WebGPUDevice.cpp
index 707ffaf54..25b58668a 100644
--- a/src/esengine/renderer/webgpu/WebGPUDevice.cpp
+++ b/src/esengine/renderer/webgpu/WebGPUDevice.cpp
@@ -1248,6 +1248,8 @@ WGPURenderPipeline WebGPUDevice::ensurePipeline(u32 id) {
// built for one sample cannot draw into a multisampled target at all.
pd.multisample.count = pass_samples_;
pd.multisample.mask = 0xFFFFFFFFu;
+ // WebGPU refuses coverage from alpha on a single-sampled pipeline.
+ pd.multisample.alphaToCoverageEnabled = desc.alphaToCoverage && pass_samples_ > 1;
pd.fragment = &fragment;
WGPUDepthStencilState ds{};
if (dsVariant != kDsNone) {
diff --git a/src/esengine/resource/ShaderParser.cpp b/src/esengine/resource/ShaderParser.cpp
index e612a74ab..324a0b023 100644
--- a/src/esengine/resource/ShaderParser.cpp
+++ b/src/esengine/resource/ShaderParser.cpp
@@ -665,6 +665,11 @@ ParsedShader ShaderParser::parse(const std::string& source, const ShaderIncludeR
continue;
}
+ if (directive == "coverage") {
+ result.coverageParam = argument;
+ continue;
+ }
+
if (directive == "domain") {
if (!argument.empty()) result.domain = normalizeDomain(argument);
continue;
diff --git a/src/esengine/resource/ShaderParser.hpp b/src/esengine/resource/ShaderParser.hpp
index 2862526b3..f16df414a 100644
--- a/src/esengine/resource/ShaderParser.hpp
+++ b/src/esengine/resource/ShaderParser.hpp
@@ -148,6 +148,10 @@ struct ParsedShader {
std::vector<ShaderSwitch> switches; ///< Material-controlled #pragma switch toggles (name + default)
std::vector<ShaderProperty> properties; ///< Exposed material params (#pragma param / properties block)
std::string domain = "Unlit"; ///< #pragma domain (Unlit/Lit/PostProcess/UI)
+ /// `#pragma coverage <param>`: while that float param is above zero, the shader's
+ /// output alpha is coverage (a cutout sharpened to one texel), so an opaque draw
+ /// may turn it into multisample coverage instead of a hard edge.
+ std::string coverageParam;
/// std140 byte size of the generated MaterialConstants block (16-aligned), 0 if no
/// non-texture params. The render path sizes the per-material UBO to this.
u32 materialBlockSize = 0;
diff --git a/tools/releaseNotes.mjs b/tools/releaseNotes.mjs
index e6413257d..c70c10e2f 100644
--- a/tools/releaseNotes.mjs
+++ b/tools/releaseNotes.mjs
@@ -1254,6 +1254,8 @@ export const NOTED = {
{ note: 'Project Health names the textures a material reads as data while they are still decoded as colour' },
'feat(health): the preflight names data maps decoded as colour, and fixes them':
{ note: 'Project Health names the textures a material reads as data while they are still decoded as colour' },
+ 'feat(render): a cutout\'s edge is antialiased':
+ { note: 'A cutout\'s edge is antialiased' },
'fix(eht): the generator writes LF on every platform':
{ internal: 'The engine header tool is a repository generator; on Windows it rewrote every generated file with CRLF, which only a contributor there ever saw.' },
};
diff --git a/tools/renderScenes.mjs b/tools/renderScenes.mjs
index 08b48dfb9..0482a99c1 100644
--- a/tools/renderScenes.mjs
+++ b/tools/renderScenes.mjs
@@ -701,6 +701,13 @@ export const SCENES = [
// effect composites over its own input, and one handed the untouched scene
// instead drops every effect before it — the quads kept their colour.
{ id: "post-chain-order", tier: "pr", webgpu: true, env: { ESTELLA_VERIFY_SCENE: "/scenes/post-chain-order.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/mesh-depth.textures.json", ESTELLA_VERIFY_W: "256", ESTELLA_VERIFY_H: "256", ESTELLA_VERIFY_STEPS: "4", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.42,\"y\":0.5,\"rgb\":[150,150,150],\"tol\":20},{\"x\":0.58,\"y\":0.5,\"rgb\":[76,76,76],\"tol\":20}]" } },
+ // The same asset's 0.75 cutout, the camera rolled so its cut runs nearly upright: with
+ // multisampling on, coverage from alpha makes the texel before the cut a blend in a
+ // share of rows (0.35 WebGL2, 0.26 WebGPU) that an alpha test does not (0.14, 0.07).
+ { id: "corpus-cutout-edge", tier: "pr", webgpu: true, corpora: ["khronos-alpha-blend-mode-test"], env: { ESTELLA_VERIFY_PREFAB: "/corpora/khronos-alpha-blend-mode-test/imported/AlphaBlendModeTest.esprefab", ESTELLA_VERIFY_SCENE: "/scenes/corpus-cutout-edge.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/corpus-alpha-modes.textures.json", ESTELLA_VERIFY_COLORSPACE: "linear", ESTELLA_VERIFY_MSAA: "4", ESTELLA_VERIFY_W: "640", ESTELLA_VERIFY_H: "640", ESTELLA_VERIFY_STEPS: "8", ESTELLA_VERIFY_CUTOUT_EDGE: "{\"box\":[0.5813,0.4219,0.6641,0.6875],\"lit\":180,\"run\":4,\"partial\":[115,180],\"minShare\":0.2}" } },
+ // Khronos's AlphaBlendModeTest (tools/corpora.mjs): the opaque box ignores its alpha, and
+ // each cutout box is cut exactly at its own threshold — wall above the mark, stripes below.
+ { id: "corpus-alpha-modes", tier: "pr", webgpu: true, corpora: ["khronos-alpha-blend-mode-test"], env: { ESTELLA_VERIFY_PREFAB: "/corpora/khronos-alpha-blend-mode-test/imported/AlphaBlendModeTest.esprefab", ESTELLA_VERIFY_SCENE: "/scenes/corpus-alpha-modes.esscene", ESTELLA_VERIFY_MANIFEST: "/scenes/corpus-alpha-modes.textures.json", ESTELLA_VERIFY_W: "960", ESTELLA_VERIFY_H: "540", ESTELLA_VERIFY_STEPS: "8", ESTELLA_VERIFY_EXPECT: "[{\"x\":0.2344,\"y\":0.3185,\"rgb\":[255,255,107],\"tol\":40},{\"x\":0.5135,\"y\":0.3167,\"rgb\":[255,255,255],\"tol\":40},{\"x\":0.5125,\"y\":0.4444,\"rgb\":[255,255,108],\"tol\":40},{\"x\":0.651,\"y\":0.3704,\"rgb\":[255,255,255],\"tol\":40},{\"x\":0.651,\"y\":0.487,\"rgb\":[255,255,108],\"tol\":40},{\"x\":0.7896,\"y\":0.4444,\"rgb\":[255,255,255],\"tol\":40},{\"x\":0.7875,\"y\":0.5185,\"rgb\":[107,255,255],\"tol\":40}]" } },
// The channels only a material can carry, one quad each, through the products a
// real import wrote. Ambient light only: the black quad's lit half can only be
// emission, the white quad's right half is occluded away, the cutout discards.