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

Recommend changing variable name "smooth" to something else in the Landscape shader #4

Open
lynnhu opened this issue Nov 8, 2021 · 0 comments

Comments

@lynnhu
Copy link

lynnhu commented Nov 8, 2021

When I select the landscape shader example from dropdown Processing 4 would freeze and throw an error :

RuntimeException: Cannot compile fragment shader:
ERROR: 0:113: 'smooth' : syntax error: syntax error

Turned out the function on line 111 in landscape.glsl is setting the variable name as "smooth" which seems to be recognized as a qualifier in GLSL:
vec3 smoothmix(vec3 a, vec3 b, float base, float smooth, float source)

Changed the name to something else like smoothValue and it runs now.

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

No branches or pull requests

1 participant