Custom shader question

this is my PG:

I defined a shader and wanted to use it, but an error was reported
image

See here: https://playground.babylonjs.com/#P70CZP#1

// Use prefix only, i.e. "stress" vs "stressVertexShader"
          const customMaterial = new BABYLON.ShaderMaterial("stressShader", scene, {
              vertex: "stress",
              fragment: "stress",
          }, {
              attributes: ["position"],
              uniforms: ["worldViewProjection"],
          });
1 Like

thank you very much!

1 Like