1
General / Re: Importing shaders from shaderstoy
« on: January 08, 2016, 06:29:13 pm »
Thank you both so much!
Just to make sure I understand what you mean Ztormi, what I have to do is basically copy the code into a "something.fragment" file, then pass parameters that I see being used in the code?
In this example would I be sending a sf::Vector3f to iResolution?
Since I only see iResolution being used in the code out of that list.
As for your GLSL is pretty easy comment, looking at the code it does look abit intimidating, but I don't have enough time to learn it until I hand in the project.
Essentially I don't need shaders, I just thought it would be a cool extra to have and also because I have never had the chance to mess around with shaders, so I jumped on the "lets try it 2 weeks before I hand the project" train.
Thanks again though.
Just to make sure I understand what you mean Ztormi, what I have to do is basically copy the code into a "something.fragment" file, then pass parameters that I see being used in the code?
In this example would I be sending a sf::Vector3f to iResolution?
Since I only see iResolution being used in the code out of that list.
As for your GLSL is pretty easy comment, looking at the code it does look abit intimidating, but I don't have enough time to learn it until I hand in the project.
Essentially I don't need shaders, I just thought it would be a cool extra to have and also because I have never had the chance to mess around with shaders, so I jumped on the "lets try it 2 weeks before I hand the project" train.
Thanks again though.