123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- // This file was created by Filewrap 1.1
- // Little endian mode
- // DO NOT EDIT
- #include "../PVRTMemoryFileSystem.h"
- // using 32 bit to guarantee alignment.
- #ifndef A32BIT
- #define A32BIT static const unsigned int
- #endif
- // ******** Start: ModelFShader.fsh ********
- // File data
- static const char _ModelFShader_fsh[] =
- "#define ENABLE_TEXTURE\r\n"
- "#ifdef ENABLE_TEXTURE\r\n"
- "uniform sampler2D\t\tModelTexture;\r\n"
- "#endif\r\n"
- "\r\n"
- "#ifdef ENABLE_FOG_DEPTH\r\n"
- "uniform lowp vec3 \t\tFogColour;\r\n"
- "uniform mediump float \tRcpMaxFogDepth;\r\n"
- "#endif\r\n"
- "\r\n"
- "#ifdef ENABLE_LIGHTING\r\n"
- "\tvarying lowp float\t\tLightIntensity;\r\n"
- "#endif\r\n"
- "#ifdef ENABLE_TEXTURE\r\n"
- "\tvarying mediump vec2 \tTexCoord;\r\n"
- "#endif\r\n"
- "#ifdef ENABLE_FOG_DEPTH\r\n"
- "\tvarying mediump float \tVertexDepth;\r\n"
- "#endif\r\n"
- "\r\n"
- "void main()\r\n"
- "{\t\r\n"
- "\t#ifdef ONLY_ALPHA\r\n"
- "\t\tgl_FragColor = vec4(vec3(0.5),0.0);\r\n"
- "\t#else\r\n"
- "\t\t#ifdef ENABLE_TEXTURE\r\n"
- "\t\t\t#ifdef ENABLE_FOG_DEPTH\t\t\r\n"
- "\t\t\t\t// Mix the object's colour with the fogging colour based on fragment's depth\r\n"
- "\t\t\t\tlowp vec3 vFragColour = texture2D(ModelTexture, TexCoord).rgb;\r\n"
- "\t\t\t\t\r\n"
- "\t\t\t\t// Perform depth test and clamp the values\r\n"
- "\t\t\t\tlowp float fFogBlend = clamp(VertexDepth * RcpMaxFogDepth, 0.0, 1.0);\r\n"
- "\t\t\t\t\r\n"
- "\t\t\t\t#ifdef ENABLE_LIGHTING\r\n"
- "\t\t\t\t\tvFragColour.rgb = mix(vFragColour.rgb * LightIntensity, FogColour.rgb, fFogBlend);\r\n"
- "\t\t\t\t#else\r\n"
- "\t\t\t\t\tvFragColour.rgb = mix(vFragColour.rgb, FogColour.rgb, fFogBlend);\r\n"
- "\t\t\t\t#endif\r\n"
- "\t\t\t\tgl_FragColor = vec4(vFragColour,1.0);\r\n"
- "\t\t\t#else\r\n"
- "\t\t\t\t#ifdef ENABLE_LIGHTING\r\n"
- "\t\t\t\t\tgl_FragColor = vec4(texture2D(ModelTexture, TexCoord).rgb * LightIntensity, 1.0);\r\n"
- "\t\t\t\t#else\r\n"
- "\t\t\t\t\tgl_FragColor = vec4(texture2D(ModelTexture, TexCoord).rgb, 1.0);\r\n"
- "\t\t\t\t#endif\r\n"
- "\t\t\t#endif\r\n"
- "\t\t#else\r\n"
- "\t\t\t// Solid colour is used instead of texture colour\r\n"
- "\t\t\t#ifdef ENABLE_LIGHTING\r\n"
- "\t\t\t\tgl_FragColor = vec4(vec3(0.3,0.3,0.3)* LightIntensity, 1.0);\r\n"
- "\t\t\t#else\r\n"
- "\t\t\t\tgl_FragColor = vec4(vec3(0.3,0.3,0.3), 1.0);\t\r\n"
- "\t\t\t#endif\r\n"
- "\t\t#endif\r\n"
- "\t#endif\r\n"
- "}\r\n";
- // Register ModelFShader.fsh in memory file system at application startup time
- static CPVRTMemoryFileSystem RegisterFile_ModelFShader_fsh("ModelFShader.fsh", _ModelFShader_fsh, 1568);
- // ******** End: ModelFShader.fsh ********
- // This file was created by Filewrap 1.1
- // Little endian mode
- // DO NOT EDIT
- #include "../PVRTMemoryFileSystem.h"
- // using 32 bit to guarantee alignment.
- #ifndef A32BIT
- #define A32BIT static const unsigned int
- #endif
- // ******** Start: ModelFShader.fsc ********
- // File data
- A32BIT _ModelFShader_fsc[] = {
- 0x10fab438,0x1f78449a,0x30050100,0x2501,0xd363e337,0x2000000,0x20000000,0x2030000,0x1000000,0x4000000,0x0,0x8000000,0x2,0x0,0x20000,0x0,0x0,0x44010000,0x55535020,0x20,0x138,0x1,0x0,0x0,0x224,0x0,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x770009,0xffff,0x1,0x0,0x10000,0x0,0x0,0x0,0x0,0x0,0x3fffc,0x40000,0x1,0x0,0xffff0003,0xffffffff,0x10001,0x800000,0x0,0x1,0x10000,0x9120c038,0x4083103e,0xffffffff,0xffffffff,0x0,0x0,0x4,0x20003,0x10000,0x80010002,
- 0x80018001,0x8001,0x0,0x40000,0xa0000000,0x28031000,0x5,0x20001,0x80018001,0x80018001,0x0,0x0,0x10,0x70007,0x3060a,0x30003,0x0,0x0,0x40000,0x40004,0x0,0x20001,0x10000,0x1,0x10000,0x20002,0x10000,0x80010002,0x80018001,0x8001,0x0,0x100000,0xe0030480,0x40811022,0x6,0x44010000,0x55535020,0x20,0x138,0x1,0x0,0x0,0x2a4,0x0,0x2,0x7d,0x0,0x8,0x0,0xffffffff,0x0,0x770009,0xffff,0x10001,0x0,0x10000,0x0,0x0,0x0,0x0,0x0,0x1fffc,0x40000,0x1,
- 0x0,0xffff0003,0xffffffff,0x10001,0x800000,0x0,0x1,0x10000,0x9120c038,0x4083103e,0xffffffff,0xffffffff,0x0,0x0,0x4,0x20003,0x10000,0x80010002,0x80018001,0x8001,0x0,0x0,0xa0000000,0x28831000,0x5,0x20001,0x80018001,0x80018001,0x0,0x0,0x0,0x70007,0x1060a,0x10001,0x0,0x0,0x40000,0x40004,0x0,0x20001,0x10000,0x1,0x10000,0x20002,0x10000,0x80010002,0x80018001,0x8001,0x0,0x0,0xe0030480,0x40811020,0x6,0x400,0x0,0x0,0x803f0000,0x2000000,0x65646f4d,0x7865546c,0x65727574,0x18000000,0x103,0x2000001,
- 0x10000,0x54000001,0x6f437865,0x64726f,0x6030000,0x1000002,0x10000,0x3000200,0x0,
- };
- // Register ModelFShader.fsc in memory file system at application startup time
- static CPVRTMemoryFileSystem RegisterFile_ModelFShader_fsc("ModelFShader.fsc", _ModelFShader_fsc, 802);
- // ******** End: ModelFShader.fsc ********
|