From 63a80c908d9bc52dc056185b6f96d2d77e71edac Mon Sep 17 00:00:00 2001 From: Julian Date: Fri, 24 Jan 2020 13:27:38 +0100 Subject: [PATCH] perlin noise rendered as a texture. --- index.html | 4 ++-- src/main.ts | 40 ++++++++++++++++++++++++---------------- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/index.html b/index.html index d31d187..d61910b 100644 --- a/index.html +++ b/index.html @@ -92,8 +92,8 @@ uniform sampler2D u_texture; void main(void) { - //gl_FragColor = texture2D(u_texture, v_uv); - gl_FragColor = vec4(0.0,0.0,1.0,1.0); + gl_FragColor = texture2D(u_texture, v_uv); + //gl_FragColor = vec4(0.0,0.0,1.0,1.0); }