Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Graphics with WebGL / Homework 11 - The graph / shaders.js
diff options
context:
space:
mode:
1 files changed, 3 insertions, 3 deletions
-rw-r--r--Year 2/Computer Graphics with WebGL/Homework 11 - The graph/shaders.js6
diff --git a/Year 2/Computer Graphics with WebGL/Homework 11 - The graph/shaders.js b/Year 2/Computer Graphics with WebGL/Homework 11 - The graph/shaders.js
index 141ae9d..24aab23 100644
--- a/Year 2/Computer Graphics with WebGL/Homework 11 - The graph/shaders.js
+++ b/Year 2/Computer Graphics with WebGL/Homework 11 - The graph/shaders.js
@@ -1,9 +1,9 @@
var vShader =
- 'attribute vec3 aXYZ;'+
+ 'attribute vec2 aXY;'+
''+
'void main ()'+
'{'+
- ' gl_Position = vec4(aXYZ,1);'+
+ ' gl_Position = vec4(aXY,0,1);'+
'}';
var fShader =
@@ -11,5 +11,5 @@ var fShader =
''+
'void main( )'+
'{'+
- ' gl_FragColor = vec4(1.0);'+
+ ' gl_FragColor = vec4(0,0,0,1);'+
'}';