VertShader.cpp 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // This file was created by Filewrap 1.1
  2. // Little endian mode
  3. // DO NOT EDIT
  4. #include "../PVRTMemoryFileSystem.h"
  5. // using 32 bit to guarantee alignment.
  6. #ifndef A32BIT
  7. #define A32BIT static const unsigned int
  8. #endif
  9. // ******** Start: VertShader.vsh ********
  10. // File data
  11. static const char _VertShader_vsh[] =
  12. "attribute highp vec4 inVertex;\r\n"
  13. "attribute highp vec3 inNormal;\r\n"
  14. "attribute highp vec2 inTexCoord;\r\n"
  15. "\r\n"
  16. "uniform highp mat4 MVPMatrix;\r\n"
  17. "uniform highp vec3 LightDirection;\r\n"
  18. "uniform highp float MaterialBias;\r\n"
  19. "uniform highp float MaterialScale;\r\n"
  20. "\r\n"
  21. "varying lowp vec3 DiffuseLight;\r\n"
  22. "varying lowp vec3 SpecularLight;\r\n"
  23. "varying mediump vec2 TexCoord;\r\n"
  24. "\r\n"
  25. "void main()\r\n"
  26. "{\r\n"
  27. "\tgl_Position = MVPMatrix * inVertex;\r\n"
  28. "\t\r\n"
  29. "\tDiffuseLight = vec3(max(dot(inNormal, LightDirection), 0.0));\r\n"
  30. "\tSpecularLight = vec3(max((DiffuseLight.x - MaterialBias) * MaterialScale, 0.0));\r\n"
  31. "\t\r\n"
  32. "\tTexCoord = inTexCoord;\r\n"
  33. "}\r\n";
  34. // Register VertShader.vsh in memory file system at application startup time
  35. static CPVRTMemoryFileSystem RegisterFile_VertShader_vsh("VertShader.vsh", _VertShader_vsh, 588);
  36. // ******** End: VertShader.vsh ********
  37. // This file was created by Filewrap 1.1
  38. // Little endian mode
  39. // DO NOT EDIT
  40. #include "../PVRTMemoryFileSystem.h"
  41. // using 32 bit to guarantee alignment.
  42. #ifndef A32BIT
  43. #define A32BIT static const unsigned int
  44. #endif
  45. // ******** Start: VertShader.vsc ********
  46. // File data
  47. A32BIT _VertShader_vsc[] = {
  48. 0x10fab438,0x5f13645d,0x30050100,0x2501,0xd363e337,0x2000000,0x20000000,0x19040000,0x0,0x4000000,0x0,0x39000000,0x20303,0x0,0x1010000,0x2,0x0,0x46020000,0x55535020,0x20,0x23a,0x1,0x1,0x0,0x204,0x80,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x122000a,0xffff,0xa,0x0,0x0,0x15,0x0,0x0,0x0,0x0,0xfffc,0x0,0x0,0x0,0xffff0003,0xffffffff,0x150000,0x80000a,0x1,0x0,0x10001,0x1,0x20001,0x2,0x30001,0x3,0x40001,0x4,0x50001,0x5,0x60001,
  49. 0x6,0x70001,0x7,0x80001,0x8,0x90001,0x9,0xa0001,0xa,0xb0001,0xb,0xc0001,0xc,0xd0001,0xd,0xe0001,0xe,0xf0001,0xf,0x100001,0x10,0x110001,0x11,0x120001,0x12,0x140001,0x13,0x150001,0x14,0x37f,0xffffffff,0xffffffff,0x0,0x0,0x4,0x20003,0x10000,0x80010002,0x80018001,0x8001,0x0,0x0,0xa1400400,0x28a11001,0x2,0x20002,0x80018000,0x80048004,0x0,0x0,0x4,0x10404,0xfa100000,0xf000050b,0x10a83205,0x2,0x2000f,0x80018001,0x80018001,0x0,0x0,0x10005,0x10001,0x10001,
  50. 0x1,0x0,0x0,0x0,0x1010000,0x101,0x60dfa10,0x605f020,0x48113898,0x606f000,0x8a153882,0x606f000,0xcc193882,0x205f040,0x1a38a2,0x205b061,0x4d813898,0x1006f001,0x8e000081,0x1006e001,0x300080,0x12019080,0x2001881,0x100160a0,0x20028a1,0x10026000,0x1a1d2881,0x100e7000,0xf300082,0x1006d020,0xb00081,0x120190e0,0x3801881,0x10016100,0x628a1,0x18000000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x6c670b00,0x736f505f,0x6f697469,0x100006e,
  51. 0x30505,0x100,0x4000001,0xf00,0x4d50564d,0x69727461,0x78,0x30316,0x100,0x10000001,0xffff,0x65566e69,0x78657472,0x5000000,0x304,0x1000001,0x40000,0x6900000f,0x726f4e6e,0x6c616d,0x4040000,0x1000003,0x10000,0x7000404,0x694c0000,0x44746867,0x63657269,0x6e6f6974,0x4000000,0x303,0x1000001,0x31000,0x44000007,0x75666669,0x694c6573,0x746867,0x5040000,0x1000001,0x10000,0x7000300,0x614d0000,0x69726574,0x69426c61,0x7361,0x3030200,0x10000,0x14000100,0x10001,0x74614d00,0x61697265,0x6163536c,0x656c,0x3030200,0x10000,0x15000100,0x10001,0x65705300,0x616c7563,0x67694c72,0x7468,0x1050400,0x10000,0x4000100,0x70003,
  52. 0x78655400,0x726f6f43,0x64,0x20503,0x100,0x2080001,0x300,0x65546e69,0x6f6f4378,0x6472,0x3040300,0x10000,0x8000100,0x30004,0x0,
  53. };
  54. // Register VertShader.vsc in memory file system at application startup time
  55. static CPVRTMemoryFileSystem RegisterFile_VertShader_vsc("VertShader.vsc", _VertShader_vsc, 1081);
  56. // ******** End: VertShader.vsc ********