Skip to content

Commit

Permalink
Fixing mismatch of uniform precision between vertex and fragment shad…
Browse files Browse the repository at this point in the history
…ers.
  • Loading branch information
janharaldfredriksen-arm committed Dec 17, 2012
1 parent dca6b2b commit 94797ca
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions sdk/demos/webkit/TeapotPerPixel.html
Expand Up @@ -42,21 +42,21 @@
// the light() function in the 2.0 context.
struct Light
{
vec4 ambient;
vec4 diffuse;
vec4 specular;
vec4 position;
mediump vec4 ambient;
mediump vec4 diffuse;
mediump vec4 specular;
mediump vec4 position;

vec3 halfVector;
mediump vec3 halfVector;
};

struct Material
{
vec4 emission;
vec4 ambient;
vec4 diffuse;
vec4 specular;
float shininess;
mediump vec4 emission;
mediump vec4 ambient;
mediump vec4 diffuse;
mediump vec4 specular;
mediump float shininess;
};

//
Expand Down

0 comments on commit 94797ca

Please sign in to comment.