From c755da334b1194a4b0c5f18442e23ff0ab04b4b9 Mon Sep 17 00:00:00 2001 From: Dimitri Lozeve Date: Sun, 7 Mar 2021 18:28:32 +0100 Subject: [PATCH] Add resources and references --- README.md | 13 +++++++++++++ shaders/julia.frag | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 174919a..dc4795b 100644 --- a/README.md +++ b/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 diff --git a/shaders/julia.frag b/shaders/julia.frag index 8b2a8b9..35321cd 100644 --- a/shaders/julia.frag +++ b/shaders/julia.frag @@ -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;