Cocos creator 3 Basic Shader exmaple code

Hi all. If anyone know example code of using shader in Cocos Creator 3. I tried to find some shaders, but in every example I am getting errors in console.

image

Yes cocos team, a super-simple shader tutorial would be awesome, anyways this shader I created is the most basic I could create…here it goes: apazaShaderSimple

could you send this example shader by text please?

1 Like

This is a bit strange indeed. The error reports an ill-formed UBO declaration, but judging from your screenshot the declaration of UBO Constant looks fine. You could click on the error message to see more details on it, including the processed source code, in which you can look up the line number reported from the error message (12).