MichaelD Posted January 25, 2018 Share Posted January 25, 2018 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 JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted January 25, 2018 Share Posted January 25, 2018 ezpz, Ill do this for you later today unless Nas beats me to it. MichaelD and NasimiAsl 1 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted January 25, 2018 Share Posted January 25, 2018 https://www.babylonjs-playground.com/#N3GI1C Feed it different textures and stuff to change the look drastically also I need to enable the alpha on it... but ehhh... this is it for all intensive purposes. Quote Link to comment Share on other sites More sharing options...
MichaelD Posted January 25, 2018 Author Share Posted January 25, 2018 Thank you very much! I will study this and try to port one my self! Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted January 25, 2018 Share Posted January 25, 2018 thanks @Pryme8 but @MichaelD that is not like sun r u wanna real sun or just exact that shader Quote Link to comment Share on other sites More sharing options...
MichaelD Posted January 25, 2018 Author Share Posted January 25, 2018 What do you have in mind? Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted January 25, 2018 Share Posted January 25, 2018 http://www.babylonjs-playground.com/#NCY1Q#34 i am on it MichaelD 1 Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted January 25, 2018 Share Posted January 25, 2018 raymarch one Nasimi Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted January 25, 2018 Share Posted January 25, 2018 what is that mean :::D:::::D Pryme8 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 25, 2018 Share Posted January 25, 2018 Quote raymarch one Nasimi Raymarching FTW! Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted January 25, 2018 Share Posted January 25, 2018 i realy dont that mean Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted January 25, 2018 Share Posted January 25, 2018 http://iquilezles.org/www/articles/distfunctions/distfunctions.htm Ill do it ^_^. Just needed a reason to. https://www.babylonjs-playground.com/#XRTJL0#4 mmmkay, just need a better more swirly noise, then set up the materials. https://www.babylonjs-playground.com/#XRTJL0#7 MichaelD 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.