test(globe): the mover shader test expects decoded sRGB colours

68ff4e1c decodes instance colours in the fragment shader; its shader
test still matched the undecoded line.
This commit is contained in:
German Khokhlov committed 2026-10-16 21:04:22 +04:00
1 parent d7193e3b9e
commit 311722e6de
1 file changed
+5 -1
+5 -1
View File
@@ -38,7 +38,11 @@ test('the shader patch sizes the quad in pixels and colours it per instance', ()
);
assert.match(shader.fragmentShader, /if \(gevOverlayHidden\(\)\) discard;/);
assert.doesNotMatch(shader.vertexShader, /#include <project_vertex>/);
assert.match(shader.fragmentShader, /diffuseColor \*= vGevColor;/);
assert.match(
shader.fragmentShader,
/diffuseColor \*= sRGBTransferEOTF\(vGevColor\);/,
'sRGB instance colours are decoded',
);
assert.doesNotMatch(shader.fragmentShader, /gevRadius > 1\.0\) discard/);
const point = patchMoverShader(basicShader(), {}, { point: true });
assert.match(point.fragmentShader, /if \(gevRadius > 1\.0\) discard;/);