Comments (2)
Hello, good eye! that's totally correct!
The random function is using the equation described just above that example. The random is obtain with the fractal of a sin() curve ( y = fract(sin(x)*1.0);
). That's why close to the edges of the wave (at PI, -PI and every other phase of PI) the curve is actually visible.
from thebookofshaders.
Oh, that's interesting. Good to know!
from thebookofshaders.
Related Issues (20)
- needed a null check in parsedown.php
- Why not update it HOT 3
- Eigenlogik Spectrum link is dead
- Dark mode for online version HOT 2
- "make clean pdf" fails on on newer MacOS versions HOT 1
- imagemagick needed to convert gif to png in compiling to pdf HOT 1
- Why no mention of vertex shader? HOT 1
- make.exe": python2.7: Command not found HOT 1
- book off-line instructions not work HOT 1
- Polish translation not fully visible HOT 1
- Dark web tactics? HOT 3
- Incorrect definition of dot product in glossary HOT 1
- dark mode inverses color inside editor color picker
- Absence of link for the "Image Processing" section on the home page.
- Bug: Chapter 13: Link to Inigo Quiles broken HOT 1
- glsl shader output threshold (question)
- Precompile the book to PDF and EPUB HOT 3
- Chapter 05 "no matching overloaded function found" for exp, log, and sqrt HOT 1
- Chapter 05 non-standard use of smoothstep
- 这书居然写了7年... 可以催更不..?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thebookofshaders.