• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: SceneFragShader.fsh ********
13 
14 // File data
15 static const char _SceneFragShader_fsh[] =
16 	"uniform sampler2D sTexture;\n"
17 	"\n"
18 	"varying lowp    vec3  DiffuseLight;\n"
19 	"varying lowp    vec3  SpecularLight;\n"
20 	"varying mediump vec2  TexCoord;\n"
21 	"\n"
22 	"void main()\n"
23 	"{\n"
24 	"\tlowp vec3 texColor  = texture2D(sTexture, TexCoord).rgb;\n"
25 	"\tlowp vec3 color = (texColor * DiffuseLight) + SpecularLight;\n"
26 	"\tgl_FragColor = vec4(color, 1.0);\n"
27 	"}\n"
28 	"\n";
29 
30 // Register SceneFragShader.fsh in memory file system at application startup time
31 static CPVRTMemoryFileSystem RegisterFile_SceneFragShader_fsh("SceneFragShader.fsh", _SceneFragShader_fsh, 306);
32 
33 // ******** End: SceneFragShader.fsh ********
34 
35