Skip to content
Discussion options

You must be logged in to vote

Here's a cleaned up vanilla version:

I'd recommend looking into Drei#shaderMaterial for custom materials, but the tricky part here is maintaining a stable reference to uniforms; I opted to store them in a useRef, but you could use any form of state.

Here's the R3F version:

As an aside, I'd check out https://github.com/stegu/webgl-noise with updated Perlin noise code. It should have less artefacts along diagonals than previous versions. I use this on my personal site to a similar effect.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@deantek
Comment options

@CodyJasonBennett
Comment options

@deantek
Comment options

Answer selected by deantek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #2573 on October 16, 2022 22:46.