PostVertShader.cpp 2.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: PostVertShader.vsh ********
  10. // File data
  11. static const char _PostVertShader_vsh[] =
  12. "attribute highp\t vec3 inVertex;\t\t//Vertex coordinates\r\n"
  13. "attribute mediump vec2 inTexCoord;\t\t//Texture coordinates in.\r\n"
  14. "varying mediump vec2 t1;\t\t\t\t//Texture coordinate passed to fragment.\r\n"
  15. "\r\n"
  16. "#ifdef EDGE_DETECTION\r\n"
  17. "uniform mediump vec2 PixelSize;\t\t\t//Relative size of a pixel (in texels) for this program.\r\n"
  18. "varying mediump vec2 t2;\t\t\t\t//Texture location for fragment directly above.\r\n"
  19. "varying mediump vec2 t3;\t\t\t\t//Texture location for fragment directly to the right.\r\n"
  20. "#endif\r\n"
  21. "\r\n"
  22. "void main()\r\n"
  23. "{\r\n"
  24. "\t//Pass through texture coordinates.\r\n"
  25. "\tt1 = inTexCoord;\r\n"
  26. "\r\n"
  27. "#ifdef EDGE_DETECTION\r\n"
  28. "\t// Sets texture coordinates for surrounding texels (up and right);\r\n"
  29. "\tt2 = vec2(inTexCoord.x, inTexCoord.y+PixelSize.y);\r\n"
  30. "\tt3 = vec2(inTexCoord.x+PixelSize.x, inTexCoord.y);\r\n"
  31. "#endif\r\n"
  32. "\r\n"
  33. "\t// Set vertex position.\r\n"
  34. "\tgl_Position = vec4(inVertex, 1.0);\r\n"
  35. "\r\n"
  36. "}\r\n";
  37. // Register PostVertShader.vsh in memory file system at application startup time
  38. static CPVRTMemoryFileSystem RegisterFile_PostVertShader_vsh("PostVertShader.vsh", _PostVertShader_vsh, 831);
  39. // ******** End: PostVertShader.vsh ********
  40. // This file was created by Filewrap 1.1
  41. // Little endian mode
  42. // DO NOT EDIT
  43. #include "../PVRTMemoryFileSystem.h"
  44. // using 32 bit to guarantee alignment.
  45. #ifndef A32BIT
  46. #define A32BIT static const unsigned int
  47. #endif
  48. // ******** Start: PostVertShader.vsc ********
  49. // File data
  50. A32BIT _PostVertShader_vsc[] = {
  51. 0x10fab438,0xa25c953,0x30050100,0x2501,0xd363e337,0x2000000,0x20000000,0x7f010000,0x0,0x4000000,0x0,0x9000000,0x2,0x60a0100,0x20000,0x51201,0x1000000,0xd8000000,0x55535020,0x20,0xcc,0x1,0x1,0x0,0x204,0x80,0x2,0x7d,0x0,0x0,0x0,0xffffffff,0x0,0x122000a,0xffff,0x7,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xfffc,0x0,0x0,0x0,0xffff0003,0xffffffff,0x0,0x800007,0x73,0xffffffff,0xffffffff,0x0,0x0,0x4,0x20003,0x30000,0x80010002,0x80018001,0x8001,0x0,0x0,
  52. 0x0,0xa0800000,0x28a11001,0xa0000200,0x28a12001,0x60601a00,0x28831001,0x6,0x803f0400,0x0,0x0,0x0,0x4000000,0x3174,0x2050300,0x10000,0x100,0x30002,0x546e6900,0x6f437865,0x64726f,0x4030000,0x1000002,0x10000,0x3000400,0x6c670000,0x736f505f,0x6f697469,0x100006e,0x30505,0x100,0x4000001,0xf00,0x65566e69,0x78657472,0x4000000,0x304,0x1000001,0x40400,0x7,
  53. };
  54. // Register PostVertShader.vsc in memory file system at application startup time
  55. static CPVRTMemoryFileSystem RegisterFile_PostVertShader_vsc("PostVertShader.vsc", _PostVertShader_vsc, 415);
  56. // ******** End: PostVertShader.vsc ********