Skip to content
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

Merged
merged 2 commits into from
Feb 8, 2024
Merged

Conversation

bmabsout
Copy link
Contributor

@bmabsout bmabsout commented Feb 8, 2024

smoooooth cheeeese

* with a following link: https://www.shadertoy.com/view/XsX3zB )
*/

#version 300 es
Copy link
Owner

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 )
Copy link
Owner

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;
Copy link
Owner

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;
Copy link
Owner

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

@oxters168 oxters168 merged commit 4c67c09 into oxters168:master Feb 8, 2024
1 check failed
@oxters168
Copy link
Owner

Thank you for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants