[SOLVED] Failed to compile vertex shader in Gaussian Splat

Hi all,
I am testing some Gaussian Splatting models, which I captured by Postshot and edited and exported in SuperSplat, that worked fine. But when I tried to put it in the Statue Gallery project, which I forked, I am having a console error:

Gaussian Splat Start | Editor

Failed to compile vertex shader:

ERROR: 0:412: ‘splatUV’ : undeclared identifier
ERROR: 0:412: ‘texelFetch’ : no matching overloaded function found
ERROR: 0:412: ‘=’ : dimension mismatch
ERROR: 0:412: ‘assign’ : cannot convert from ‘const mediump float’ to ‘out mediump 4-component vector of float’

407: }
408:
409: vec4 v1v2 = calcV1V2(splat_cam.xyz, covA, covB, transpose(mat3(model_view)));
410:
411:
412: color = texelFetch(splatColor, splatUV, 0);
413:
414:
415: float scale = min(1.0, sqrt(-log(1.0 / 255.0 / color.a)) / 2.0);
416:
417: v1v2 *= scale;
while rendering Pass:RenderPassForward | Camera: Camera, Layer: World(TRANSP) | Node: Bird, Material: compressedSplatMaterial

What I am doing wrong?

The shader is likely out of date and needs to be updated.
An example of up to date shader is here, this is the form that shaders needs to be in. Likely not super straightforward. PlayCanvas Examples

@slimbuck for visibility, he might want to update the mentioned project when back from a break next week

1 Like

Thanks @mvaligursky

@slimbuck please try to update this project when you have some time off!

I just opened the statues project and it worked fine. Note that it currently is only compatible with Engine v1 though. If you flip the project to Engine v2, you’ll currently get errors. We should upgrade it when we get a moment.

Ok, thanks!