1
General / Importing shaders from shaderstoy
« on: January 08, 2016, 12:19:41 pm »
I have been trying to mess with shaders on my project recently and I encountered afew problems.
Firstly I am a total noobie with shaders and sfml so excuse me if I state things that are wrong, I probably understood info I read incorrectly.
I saw there is a site called shaderstoy and I tried to figure out how to implement shaders from the site into my project. I read the sfml wiki about shaders, I got the SFML code part, although I'm not sure what to do on the shaders side.
What file to create with the code from the site, what parameters to pass etc.
For example this shader:
https://www.shadertoy.com/view/MsjXzh
How would one implement it and know what parameters to pass to it?
Again, sorry if I said stuff that made you cringe from my lack of knowledge in this department.
I just couldnt find lots of info regarding my question, I hope I was clear.
Firstly I am a total noobie with shaders and sfml so excuse me if I state things that are wrong, I probably understood info I read incorrectly.
I saw there is a site called shaderstoy and I tried to figure out how to implement shaders from the site into my project. I read the sfml wiki about shaders, I got the SFML code part, although I'm not sure what to do on the shaders side.
What file to create with the code from the site, what parameters to pass etc.
For example this shader:
https://www.shadertoy.com/view/MsjXzh
How would one implement it and know what parameters to pass to it?
Again, sorry if I said stuff that made you cringe from my lack of knowledge in this department.
I just couldnt find lots of info regarding my question, I hope I was clear.