-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created the smooth_cheese.fsh shader #26
Conversation
smoooooth cheeeese
* with a following link: https://www.shadertoy.com/view/XsX3zB ) | ||
*/ | ||
|
||
#version 300 es |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be at the very top of the file
return dot(d, vec4(52.0)); | ||
} | ||
|
||
void mainImage( out vec4 fragColor, in vec2 fragCoord ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function should be void main()
to be compatible with Ox Shell
|
||
void mainImage( out vec4 fragColor, in vec2 fragCoord ) | ||
{ | ||
vec2 p = fragCoord.xy/iResolution.x; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And now that there is no fragCoord
variable anymore, this line becomes vec2 p = textureCoord;
float blue = abs(simplex3d(p3*2.0 + 98274.9)); | ||
|
||
fragColor = vec4(sqrt(value*vec3(red, green, blue)), 1.0); | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The return line should be removed
Thank you for contributing! |
smoooooth cheeeese