Permalink
Browse files

Merge pull request #114 from janharaldfredriksen/uniformprecisionmism…

…atch

Fixing mismatch of uniform precision between vertex and fragment shaders...
  • Loading branch information...
2 parents 11db0c3 + 94797ca commit 4eebd5a3da216a54be20d295e0bba959073eb74f @kenrussell kenrussell committed Dec 17, 2012
Showing with 10 additions and 10 deletions.
  1. +10 −10 sdk/demos/webkit/TeapotPerPixel.html
@@ -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;
};
//

0 comments on commit 4eebd5a

Please sign in to comment.