Added test texture. default tip
authorEugen Sawin <sawine@me73.com>
Sat, 30 Apr 2011 04:32:22 +0200
changeset 38ce3efaacb700
parent 37 97af0c060479
Added test texture.
scripts/machine.js
scripts/renderer.js
textures/test.png
     1.1 --- a/scripts/machine.js	Sat Apr 30 04:16:57 2011 +0200
     1.2 +++ b/scripts/machine.js	Sat Apr 30 04:32:22 2011 +0200
     1.3 @@ -67,7 +67,7 @@
     1.4  function createScene(context)
     1.5  {
     1.6      var size = 1;
     1.7 -    var texture = new Texture("textures/nehe.gif");
     1.8 +    var texture = new Texture("textures/test.png");
     1.9      var vbo = new CubeVbo(size, context, texture);
    1.10      var scene = new Node([0, 0, 0], [0, 0, 0], new Cube(vbo));
    1.11      var dim = 10;
     2.1 --- a/scripts/renderer.js	Sat Apr 30 04:16:57 2011 +0200
     2.2 +++ b/scripts/renderer.js	Sat Apr 30 04:32:22 2011 +0200
     2.3 @@ -147,7 +147,7 @@
     2.4  	gl.uniform3f(shader.pointLightingLocationUniform, pos[0], pos[1], pos[2]);
     2.5  	uni = 1.0;
     2.6  	gl.uniform3f(shader.pointLightingSpecularColourUniform, uni, uni, uni);
     2.7 -	uni = .05;
     2.8 +	uni = .07;
     2.9  	gl.uniform3f(shader.pointLightingDiffuseColourUniform, uni, uni, uni);
    2.10  
    2.11  	// var lightingDir = vec3.create();
     3.1 Binary file textures/test.png has changed