• Tutorials
  • How To Import Shader From ShaderToy To Godot

Godot uses it own shader language although quite similar to GLSL it can still be a bit tricky to import shaders from shadertoy which also uses its own variables and techniques , in this tutorial will take the most popular new fragment shader in ShaderToy and import it to Godot making all required conversions slowly step by step.

a month later

Nice. Does anybody know how to migrate the Volume 3d Noise?

7 days later

@mziskandar said: Nice. Does anybody know how to migrate the Volume 3d Noise?

you will have to be more specific than that

This 3d volume.

If its an image we can use: uniform sampler2D iChannel0 as shader param.

How about the 3d Volume Noises? What kind of file that represent the 32 x32 x32, uint8?

I am not entirely certain, because I am new to this but you can of course work with any kind of data shader wise including 3d arrays using uniforms for input and output. I am also aware about Texture3d for 3d textures. Godot supports this via https://docs.godotengine.org/en/stable/classes/class_texture3d.html

How you could load this from a file, I have no idea, never tried it.