VertShader.cpp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 vec3 inVertex;\r\n"
  13. "attribute mediump vec3 inNormal;\r\n"
  14. "attribute mediump vec2 inTexCoord;\r\n"
  15. "\r\n"
  16. "uniform highp mat4 MVPMatrix;\r\n"
  17. "uniform mediump vec3 LightDirection;\r\n"
  18. "\r\n"
  19. "varying lowp float LightIntensity;\r\n"
  20. "varying mediump vec2 TexCoord;\r\n"
  21. "\r\n"
  22. "void main()\r\n"
  23. "{\r\n"
  24. "\t// Transform position\r\n"
  25. "\tgl_Position = MVPMatrix * vec4(inVertex, 1.0);\r\n"
  26. "\r\n"
  27. "\t// Pass through texcoords\r\n"
  28. "\tTexCoord = inTexCoord;\r\n"
  29. "\t\r\n"
  30. "\t// Simple diffuse lighting in model space\r\n"
  31. "\tLightIntensity = dot(inNormal, -LightDirection);\r\n"
  32. "}";
  33. // Register VertShader.vsh in memory file system at application startup time
  34. static CPVRTMemoryFileSystem RegisterFile_VertShader_vsh("VertShader.vsh", _VertShader_vsh, 503);
  35. // ******** End: VertShader.vsh ********
  36. // This file was created by Filewrap 1.1
  37. // Little endian mode
  38. // DO NOT EDIT
  39. #include "../PVRTMemoryFileSystem.h"
  40. // using 32 bit to guarantee alignment.
  41. #ifndef A32BIT
  42. #define A32BIT static const unsigned int
  43. #endif
  44. // ******** Start: VertShader.vsc ********
  45. // File data
  46. A32BIT _VertShader_vsc[] = {
  47. 0x10fab438,0xe1d1e64a,0x30050100,0x2501,0xd363e337,0x2000000,0x20000000,0x34030000,0x0,0x4000000,0x0,0x19000000,0x310202,0x0,0x1020015,0x0,0x0,0xbe010000,0x55535020,0x20,0x1b2,0x1,0x1,0x0,0x204,0x80,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x122000a,0xffff,0xb,0x0,0x0,0x14,0x0,0x0,0x0,0x0,0xfffc,0x0,0x0,0x0,0xffff0003,0xffffffff,0x120000,0x80000b,0x140002,0x0,0x150002,0x100000,0x160002,0x1,0x170002,0x100001,0x40001,0x2,0x50001,0x3,0x60001,
  48. 0x4,0x70001,0x5,0x80001,0x6,0x90001,0x7,0xa0001,0x8,0xb0001,0x9,0xc0001,0xa,0xd0001,0xb,0xe0001,0xc,0xf0001,0xd,0x100001,0xe,0x110001,0xf,0x120001,0x10,0x130001,0x11,0x737,0xffffffff,0xffffffff,0x0,0x0,0x4,0x20003,0xa0000,0x80010002,0x80018001,0x8001,0x0,0x0,0x0,0x10001,0x1,0x10001,0x2000001,0x1001a080,0x45428a1,0x2009b080,0x60d10e0,0x606f060,0x481138ab,0x606f060,0x8a153882,0x606f060,0x1a183882,0x1001701f,0x70f00a2,0x606f000,0x491338ab,0x606f000,0x8b173882,0x606f000,0x1a1a3882,0x1001705f,
  49. 0x600a2,0x18000000,0x803f,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x6e690800,0x74726556,0x7865,0x3040400,0x10000,0x100,0x70004,0x5f6c6700,0x69736f50,0x6e6f6974,0x5010000,0x305,0x1000001,0x40000,0x4d00000f,0x614d5056,0x78697274,0x16000000,0x303,0x1000001,0xff100400,0x540000ff,0x6f437865,0x64726f,0x5030000,0x1000002,0x10000,0x3000200,0x6e690000,0x43786554,0x64726f6f,0x3000000,0x204,0x1000001,0x40400,0x69000003,0x726f4e6e,0x6c616d,
  50. 0x4040000,0x1000002,0x10000,0x7000408,0x694c0000,0x44746867,0x63657269,0x6e6f6974,0x4000000,0x203,0x1000001,0x31400,0x4c000007,0x74686769,0x65746e49,0x7469736e,0x79,0x10502,0x100,0x1040001,0x100,0x0,
  51. };
  52. // Register VertShader.vsc in memory file system at application startup time
  53. static CPVRTMemoryFileSystem RegisterFile_VertShader_vsc("VertShader.vsc", _VertShader_vsc, 852);
  54. // ******** End: VertShader.vsc ********