# HG changeset patch # User Eugen Sawin # Date 1304130742 -7200 # Node ID ce3efaacb7008c3827a237542f877a9c8a3188a5 # Parent 97af0c06047975a226231b21c63dc6717f6a735e Added test texture. diff -r 97af0c060479 -r ce3efaacb700 scripts/machine.js --- a/scripts/machine.js Sat Apr 30 04:16:57 2011 +0200 +++ b/scripts/machine.js Sat Apr 30 04:32:22 2011 +0200 @@ -67,7 +67,7 @@ function createScene(context) { var size = 1; - var texture = new Texture("textures/nehe.gif"); + var texture = new Texture("textures/test.png"); var vbo = new CubeVbo(size, context, texture); var scene = new Node([0, 0, 0], [0, 0, 0], new Cube(vbo)); var dim = 10; diff -r 97af0c060479 -r ce3efaacb700 scripts/renderer.js --- a/scripts/renderer.js Sat Apr 30 04:16:57 2011 +0200 +++ b/scripts/renderer.js Sat Apr 30 04:32:22 2011 +0200 @@ -147,7 +147,7 @@ gl.uniform3f(shader.pointLightingLocationUniform, pos[0], pos[1], pos[2]); uni = 1.0; gl.uniform3f(shader.pointLightingSpecularColourUniform, uni, uni, uni); - uni = .05; + uni = .07; gl.uniform3f(shader.pointLightingDiffuseColourUniform, uni, uni, uni); // var lightingDir = vec3.create(); diff -r 97af0c060479 -r ce3efaacb700 textures/test.png Binary file textures/test.png has changed