Skip to content

Commit

Permalink
Merge pull request #96 from giry/patch-5
Browse files Browse the repository at this point in the history
fixed shader problem (in latest Chrome version)
  • Loading branch information
supereggbert committed Dec 15, 2013
2 parents 590a509 + 6435875 commit 11e0db8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderable/glge_object.js
Expand Up @@ -584,7 +584,7 @@ GLGE.Object.prototype.GLGenerateShader=function(gl){
//Vertex Shader
var colors=UV=joints1=joints2=false;
var lights=gl.lights;
var vertexStr=["#define GLGE_VERTEX\n"];
var vertexStr=["#ifdef GL_ES\nprecision mediump float;\n#endif\n#define GLGE_VERTEX\n"];
var tangent=false;
if(!this.mesh.normals) this.mesh.calcNormals();
vertexStr.push("attribute vec3 position;\n");
Expand Down Expand Up @@ -1302,4 +1302,4 @@ GLGE.Object.prototype.GLRender=function(gl,renderType,pickindex,multiMaterial,di
}
}

})(GLGE);
})(GLGE);

0 comments on commit 11e0db8

Please sign in to comment.