summaryrefslogtreecommitdiff
path: root/WebInterface/wasm/asm-paint/src/shader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'WebInterface/wasm/asm-paint/src/shader.rs')
-rw-r--r--WebInterface/wasm/asm-paint/src/shader.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/WebInterface/wasm/asm-paint/src/shader.rs b/WebInterface/wasm/asm-paint/src/shader.rs
index 2823cd4..3352bcf 100644
--- a/WebInterface/wasm/asm-paint/src/shader.rs
+++ b/WebInterface/wasm/asm-paint/src/shader.rs
@@ -1,13 +1,15 @@
use web_sys::{WebGlProgram, WebGl2RenderingContext};
-const VERTEX_SHADER: &str = r#"#version 300 es
+const VERTEX_SHADER: &str =
+r#"#version 300 es
in vec4 pos;
void main() {
gl_Position = pos;
}
"#;
-const FRAGMENT_SHADER: &str = r#"#version 300 es
+const FRAGMENT_SHADER: &str =
+r#"#version 300 es
precision mediump float;
out vec4 color;