Home | History | Annotate | Download | only in Content
      1 // This file was created by Filewrap 1.1
      2 // Little endian mode
      3 // DO NOT EDIT
      4 
      5 #include "../PVRTMemoryFileSystem.h"
      6 
      7 // using 32 bit to guarantee alignment.
      8 #ifndef A32BIT
      9  #define A32BIT static const unsigned int
     10 #endif
     11 
     12 // ******** Start: SceneVertShader.vsh ********
     13 
     14 // File data
     15 static const char _SceneVertShader_vsh[] =
     16 	"attribute highp vec4  inVertex;\n"
     17 	"attribute highp vec3  inNormal;\n"
     18 	"attribute highp vec2  inTexCoord;\n"
     19 	"\n"
     20 	"uniform highp mat4   MVPMatrix;\n"
     21 	"uniform highp vec3   LightDirection;\n"
     22 	"uniform highp float  MaterialBias;\n"
     23 	"uniform highp float  MaterialScale;\n"
     24 	"\n"
     25 	"varying lowp vec3  DiffuseLight;\n"
     26 	"varying lowp vec3  SpecularLight;\n"
     27 	"varying mediump vec2  TexCoord;\n"
     28 	"\n"
     29 	"void main()\n"
     30 	"{\n"
     31 	"\tgl_Position = MVPMatrix * inVertex;\n"
     32 	"\t\n"
     33 	"\tDiffuseLight = vec3(max(dot(inNormal, LightDirection), 0.0));\n"
     34 	"\tSpecularLight = vec3(max((DiffuseLight.x - MaterialBias) * MaterialScale, 0.0));\n"
     35 	"\t\n"
     36 	"\tTexCoord = inTexCoord;\n"
     37 	"}\n";
     38 
     39 // Register SceneVertShader.vsh in memory file system at application startup time
     40 static CPVRTMemoryFileSystem RegisterFile_SceneVertShader_vsh("SceneVertShader.vsh", _SceneVertShader_vsh, 566);
     41 
     42 // ******** End: SceneVertShader.vsh ********
     43 
     44