Add resources and references
This commit is contained in:
parent
17ad76f0f6
commit
c755da334b
2 changed files with 16 additions and 3 deletions
13
README.md
13
README.md
|
@ -84,3 +84,16 @@ in a texture in another framebuffer) does not work properly. I don't
|
|||
understand exactly what's broken, but maybe I'll investigate it more
|
||||
closely later. If you have any idea about what went wrong, don't
|
||||
hesitate to notify me!
|
||||
|
||||
## References and other resources
|
||||
|
||||
- [LearnOpenGL](https://learnopengl.com/)
|
||||
- [open.gl](https://open.gl/)
|
||||
- [docs.gl](http://docs.gl/)
|
||||
- [The Book of Shaders](https://thebookofshaders.com/)
|
||||
- [glslViewer](https://github.com/patriciogonzalezvivo/glslViewer), a
|
||||
much more complete project with similar aims
|
||||
- [Shadertoy](https://www.shadertoy.com/)
|
||||
- [smoothstep.io](https://smoothstep.io/)
|
||||
- [webgl-noise](https://github.com/stegu/webgl-noise/), a collection
|
||||
of reference implementations of noise functions, for use in shaders
|
||||
|
|
|
@ -49,11 +49,11 @@ float pi = 2.0 * asin(1.0);
|
|||
|
||||
void main() {
|
||||
// Changes with time
|
||||
// float a = 2.0 * pi * (int(u_frame) % 500) / 500.0;
|
||||
// vec2 c = 0.7885 * vec2(cos(a), sin(a));
|
||||
float a = 2.0 * pi * (int(u_frame) % 500) / 500.0;
|
||||
vec2 c = 0.7885 * vec2(cos(a), sin(a));
|
||||
|
||||
// Changes with cursor position
|
||||
vec2 c = u_mouse.xy / u_resolution.xy * 2.0 - vec2(1.0, 1.0);
|
||||
// vec2 c = u_mouse.xy / u_resolution.xy * 2.0 - vec2(1.0, 1.0);
|
||||
|
||||
vec2 z = gl_FragCoord.xy / u_resolution.xy * 3.0 - vec2(1.5, 1.5);
|
||||
int i = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue