BabylonJS/Spector.js

[Help] what does a checkboard texture indicate?

chipweinberger opened this issue · 1 comments

I am comparing two recordings

One recording has checkerboard like this:

Screenshot 2023-10-13 at 12 31 15 AM

The other recording does not:

Screenshot 2023-10-13 at 12 30 38 AM

I am trying to get the second recording to match the first recording . What does a checkboard indicate? How might I get them to match?

So I confirmed that checkboard means alpha == 0.

Poking around, I found the offending code! I was always setting alpha to 1.

        void main( void )
        {
            vec4 color = vec4(0.0,0.0,0.0,0.0);
            mainImage( color, gl_FragCoord.xy );
            shadertoy_out_color = vec4(color.xyz,1.0); // OFFENDING CODE!
        }

Now they match!