~thomas-voss/glmark2/build-for-mir

« back to all changes in this revision

Viewing changes to data/shaders/light-basic.vert

  • Committer: Package Import Robot
  • Author(s): Alexandros Frantzis
  • Date: 2011-09-22 11:32:17 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: package-import@ubuntu.com-20110922113217-wvok1qgruexari8d
Tags: 2011.09-0ubuntu1
* New upstream release 2011.09.
* debian/control:
  - Start the description of the glmark2-data package with
    a lowercase letter.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 
5
5
uniform mat4 ModelViewProjectionMatrix;
6
6
uniform mat4 NormalMatrix;
7
 
uniform vec4 LightSourcePosition;
8
 
uniform vec4 MaterialColor;
9
7
 
10
8
varying vec4 Color;
11
9
varying vec2 TextureCoord;
21
19
    // Multiply the diffuse value by the vertex color (which is fixed in this case)
22
20
    // to get the actual color that we will use to draw this vertex with
23
21
    float diffuse = max(dot(N, L), 0.0);
24
 
    Color = diffuse * MaterialColor;
 
22
    Color = diffuse * MaterialDiffuse;
25
23
 
26
24
    // Set the texture coordinates as a varying
27
25
    TextureCoord = texcoord;