mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 03:14:00 +00:00
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:
1 parent
d7193e3b9e
commit
311722e6de
1 file changed
+5
-1
@@ -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;/);
|
||||
|
||||
Reference in new issue
Block a user