( 1 ) Paste the code from Shadertoy below

( 2 ) Tap Here

( 3 ) Copy-paste the result below into a Code Node

Please credit the author and respect their license!

Shadertoy To Code Node

Saved you time? ☕ Buy me a coffee

Bugs or requests? ✉️ Message me

Demo Project: 👻 Download here

Supported conversions

Unsupported conversions

Buffers

See the example project Buffer Camera prefab. Each buffer should have its own Layer (colored dot), Render Target, and Orthographic Camera with a fullscreen image to render the Shadertoy code to. Generally Render Targets should be set to Clear Color: None

iMouse

See the example project iMouse Script. iMouse is a vec4 with xy as pixel coordinates, and zw being the button press state. This tool handles conversion to pixel coordinates, so just pass in a normalized 0-1 xy coordinate, with 0,0 in the bottom left of screen.