I want to use WebGPU with my project to get its benefits, but my triplannar mapping shader doesn’t want to work.
Side question: Is there any way to update my shader chunk API version without changing the functionality?
I want to use WebGPU with my project to get its benefits, but my triplannar mapping shader doesn’t want to work.
Side question: Is there any way to update my shader chunk API version without changing the functionality?
See the chunk API versions section here:
if your chunk is up to date, you just need to mark it with a version, to stop the engine from complaining.
regarding not working on WebGPU, it seems your shader requires TANGENT space, which is slot 13:
engine code: semanticToLocation[SEMANTIC_TANGENT] = 13;
there’s this in your shader:
attribute vec4 vertex_tangent;
but the mesh does not have tangent on it. WebGPU is bit more strict here. It does not seem your shader needs the tangent?
Would I be able to just remove the tangent attribute from the shader or force it to generate and use tangents?
The shader does not seem to use the tangent, so removing should be fine. I I didn’t really check the shader, just noticed that bit.
Thanks, will try that soon!
Now I’m getting slot 4 with the same error. Where can I see all of the slots?
I removed those errors but got some weird bugs…
My uvs keep jittering like crazy in WebGPU and not in Webgl2.
This is showing zUV.