Jump to content

Converting shaders from ThreeJS or Shadertoy


MichaelD
 Share

Recommended Posts

Hello,

Is there a guide or some documentation on how to convert shaders from ThreeJS or shadertoy?

I see that each one uses different uniforms and it a bit confusing.

For example I wanted to convert this shader from shadertoy: https://www.shadertoy.com/view/lsK3Dm

I added the code to CYOS on the fragment shader box but got many errors mostly due to the lack of uniforms that shadertoy uses by default.

It would be nice if a list of equivalents existed that would make the convertion easier from one tool to another since all use GLSL

And this is the ThreeJS example that I tried to convert and also failed: 

Thanks in advance. I know this is a complicated issue and not so difficult for people with abundant knowledge with shaders, but we all have to start somewhere :)

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...