This one is exactly what I need https://www.shadertoy.com/view/4slGRM
I tried to copy content of that to this fragShader property but I’m getting errors like:
Uncaught Error: Failed to compile Fragment Shader:
ERROR: 0:3: '' : No precision specified for (float)
ERROR: 0:4: '' : No precision specified for (float)
ERROR: 0:5: '' : No precision specified for (float)
ERROR: 0:7: '' : No precision specified for (float)
ERROR: 0:8: '' : No precision specified for (float)
ERROR: 0:9: '' : No precision specified for (float)
ERROR: 0:10: 'iChannel0' : syntax error
at initialize.createProgram (main.js:114)
at CustomPipeline.initialize (main.js:114)
at CustomPipeline.initialize [as constructor] (main.js:114)
at new CustomPipeline (main.js:122)
at initialize.Game.preload (main.js:234)
at initialize.bootScene (main.js:114)
at initialize.start (main.js:114)
at initialize.bootQueue (main.js:114)
at h.emit (main.js:114)
at initialize.texturesReady (main.js:114)
Is it even possible to use this Shader in Phaser 3?
It’s hard for me to understand how it works so I need a little help with this…
Now, the key thing that will make you save time. REFACTOR iResolution to resolution, iTime to time, etc. Then you have a very awesome, simple texture in modern phaser 3, without any pipelines.