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

Changes in turbulence #57

Merged
merged 6 commits into from
Dec 16, 2024
Merged

Changes in turbulence #57

merged 6 commits into from
Dec 16, 2024

Conversation

marine-bre
Copy link
Contributor

No description provided.

FRAGCOORD_XY_TIME:
'vec3 turbulenceSeed = vec3(gl_FragCoord.xy, u_time * 0.0001)',
FRAGCOORD_XYZ: 'vec3 turbulenceSeed = vec3(gl_FragCoord.xyz)',
FRAGCOORD_MOUSE_RESOLUTION:
Copy link
Collaborator

@ydaniv ydaniv Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FRAGCOORD_XY_MOUSE_Z
FRAGCOORD_XY_MOUSE_TIME

FRAGCOORD_MOUSE_RESOLUTION:
'vec3 turbulenceSeed = vec2(gl_FragCoord.x + u_mouse.x * u_resolution.x * -1.0, gl_FragCoord.y + u_mouse.y * u_resolution.y, u_time * 0.0001);',
};

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And expose as below

src/effects/turbulence.js Outdated Show resolved Hide resolved
@ydaniv ydaniv merged commit edfa10f into master Dec 16, 2024
1 check passed
@ydaniv ydaniv deleted the turbulence-changes branch December 16, 2024 11:06
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