-
Notifications
You must be signed in to change notification settings - Fork 61
HW 1 Submission #12
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
base: master
Are you sure you want to change the base?
HW 1 Submission #12
Conversation
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.
Nice work!
| uniform float noiseStrength; | ||
| const int aLargeNumber = 10; | ||
|
|
||
| float generateNoise(int x, int y, int z, int numOctave) { |
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.
Nice idea taking in the octave here to add variation
| // with each subsequent noise function increasing in frequency and decreasing in amplitude | ||
| float generateMultiOctaveNoise(float x, float y, float z) { | ||
| float total = 0.0; | ||
| float persistence = 1.0/noiseStrength; |
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.
It's a little odd that less "noise" makes it more noisy.
The link should be https://gracexu94.github.io/Project1-Noise - not sure if the one showing is the latest though. Definitely runs locally.