FragShader.cpp 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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: FragShader.fsh ********
  10. // File data
  11. static const char _FragShader_fsh[] =
  12. "uniform sampler2D s2DMap;\r\n"
  13. "uniform samplerCube sCubeMap;\r\n"
  14. "\r\n"
  15. "uniform bool bCubeReflection;\r\n"
  16. "\r\n"
  17. "varying mediump vec3 ReflectDir;\r\n"
  18. "\r\n"
  19. "void main()\r\n"
  20. "{\r\n"
  21. "\t// select whether to use cube map reflection or 2d reflection\t\r\n"
  22. "\tif(bCubeReflection)\r\n"
  23. "\t{\r\n"
  24. "\t\tgl_FragColor = textureCube(sCubeMap, ReflectDir);\r\n"
  25. "\t}\r\n"
  26. "\telse \r\n"
  27. "\t{\r\n"
  28. "\t\tgl_FragColor = texture2D(s2DMap, ReflectDir.xy * 0.5 + 0.5);\r\n"
  29. "\t}\r\n"
  30. "}";
  31. // Register FragShader.fsh in memory file system at application startup time
  32. static CPVRTMemoryFileSystem RegisterFile_FragShader_fsh("FragShader.fsh", _FragShader_fsh, 375);
  33. // ******** End: FragShader.fsh ********
  34. // This file was created by Filewrap 1.1
  35. // Little endian mode
  36. // DO NOT EDIT
  37. #include "../PVRTMemoryFileSystem.h"
  38. // using 32 bit to guarantee alignment.
  39. #ifndef A32BIT
  40. #define A32BIT static const unsigned int
  41. #endif
  42. // ******** Start: FragShader.fsc ********
  43. // File data
  44. A32BIT _FragShader_fsc[] = {
  45. 0x10fab438,0xdda1a3e0,0x30050100,0x2501,0xd363e337,0x2000000,0x20000000,0x8b040000,0x1000000,0x4000000,0x0,0x8000000,0x103,0x2000000,0x20000,0x0,0x0,0xe4010000,0x55535020,0x20,0x1d8,0x1,0x0,0x0,0x224,0x80,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x770009,0xffff,0x20002,0x0,0x20000,0x3,0x0,0x0,0x0,0x0,0x3fffc,0x40001,0x1,0x1,0xffff0003,0xffffffff,0x20000,0x800000,0x4,0x20001,0x10002,0x0,0x1,0x10000,0x40002,0x0,0x50002,0x100000,0x1,0x1,0xffffffff,
  46. 0xffffffff,0x0,0x0,0x4,0x20003,0x10000,0x80010002,0x80018001,0x8001,0x0,0x0,0xd0000530,0x48a91281,0x3,0x0,0xf9000040,0x20004,0x20000,0x80010002,0x80018001,0x8001,0x0,0x40000,0x29520004,0x1004f010,0x69520040,0x1004f030,0x50040,0x0,0x80010002,0x80018001,0x8001,0x0,0x0,0xf0001,0x60a000f,0x30003,0x30003,0x10001,0x10001,0x40004,0x40004,0x10000,0x30002,0x20001,0x0,0xa0000000,0xe0031400,0x3,0x0,0xf8000040,0x40005,0x40000,0x5,0x20001,0x80018001,0x80018001,0x0,0x0,0x0,0xf000f,0x3060a,0x30003,0x10003,
  47. 0x10001,0x40001,0x40004,0x4,0x20001,0x10003,0x0,0x10000,0x40003,0x50000,0x6,0xe4010000,0x55535020,0x20,0x1d8,0x1,0x0,0x0,0x2a4,0x80,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x770009,0xffff,0x20002,0x0,0x20000,0x3,0x0,0x0,0x0,0x0,0x1fffc,0x40000,0x1,0x0,0xffff0003,0xffffffff,0x20000,0x800000,0x4,0x20001,0x10002,0x0,0x1,0x10000,0x40002,0x0,0x50002,0x100000,0x1,0x1,0xffffffff,0xffffffff,0x0,0x0,0x4,0x20003,0x10000,
  48. 0x80010002,0x80018001,0x8001,0x0,0x0,0xd0000530,0x48a91281,0x3,0x0,0xf9000040,0x20004,0x20000,0x80010002,0x80018001,0x8001,0x0,0x40000,0x29520004,0x1004f010,0x69520040,0x1004f030,0x50040,0x0,0x80010002,0x80018001,0x8001,0x0,0x0,0xf0001,0x60a000f,0x10001,0x10001,0x0,0x0,0x40004,0x40004,0x10000,0x30002,0x20001,0x0,0xa0000000,0xe0031400,0x3,0x0,0xf8000040,0x40005,0x40000,0x5,0x20001,0x80018001,0x80018001,0x0,0x0,0x0,0xf000f,0x1060a,0x10001,0x1,0x0,0x40000,0x40004,0x4,0x20001,0x10003,
  49. 0x1,0x10000,0x40003,0x50000,0x6,0x800,0x0,0x0,0x0,0x3f0000,0x0,0x0,0x0,0x4000000,0x62754362,0x66655265,0x7463656c,0x6e6f69,0x30a0000,0x1000000,0x10000,0x1000100,0x43730000,0x4d656275,0x7061,0x1031a00,0x10000,0x200,0x10001,0x66655200,0x7463656c,0x726944,0x6040000,0x1000002,0x10000,0x7000300,0x32730000,0x70614d44,0x18000000,0x103,0x2000001,0x10100,0x1,
  50. };
  51. // Register FragShader.fsc in memory file system at application startup time
  52. static CPVRTMemoryFileSystem RegisterFile_FragShader_fsc("FragShader.fsc", _FragShader_fsc, 1195);
  53. // ******** End: FragShader.fsc ********