• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*!****************************************************************************
2 
3  @file         OGLES2/PVRTPrint3DShaders.h
4  @ingroup      API_OGLES2
5  @copyright    Copyright (c) Imagination Technologies Limited.
6  @brief        The shaders used by Print3D. Created by Filewrap 1.0. DO NOT EDIT.
7 
8 ******************************************************************************/
9 
10 // This file was created by Filewrap 1.1
11 // Little endian mode
12 // DO NOT EDIT
13 
14 // ******** Start: Print3DFragShader.fsh ********
15 
16 // File data
17 static const char _Print3DFragShader_fsh[] =
18 	"uniform sampler2D\tsampler2d;\n"
19 	"\n"
20 	"varying lowp vec4\t\tvarColour;\n"
21 	"varying mediump vec2\ttexCoord;\n"
22 	"\n"
23 	"void main()\n"
24 	"{\n"
25 	"\tlowp vec4 vTex = texture2D(sampler2d, texCoord);\n"
26 	"\tgl_FragColor = vec4(varColour.rgb * vTex.r, varColour.a * vTex.a);\n"
27 	"}\n";
28 
29 // ******** End: Print3DFragShader.fsh ********
30 
31 // ******** Start: Print3DVertShader.vsh ********
32 
33 // File data
34 static const char _Print3DVertShader_vsh[] =
35 	"attribute highp vec4\tmyVertex;\n"
36 	"attribute mediump vec2\tmyUV;\n"
37 	"attribute lowp vec4\t\tmyColour;\n"
38 	"\n"
39 	"uniform highp mat4\t\tmyMVPMatrix;\n"
40 	"\n"
41 	"varying lowp vec4\t\tvarColour;\n"
42 	"varying mediump vec2\ttexCoord;\n"
43 	"\n"
44 	"void main()\n"
45 	"{\n"
46 	"\tgl_Position = myMVPMatrix * myVertex;\n"
47 	"\ttexCoord = myUV.st;\n"
48 	"\tvarColour = myColour;\n"
49 	"}\n";
50 
51 // ******** End: Print3DVertShader.vsh ********
52 
53 // ******** Start: Print3DFragShaderLogo.fsh ********
54 
55 // File data
56 static const char _Print3DFragShaderLogo_fsh[] =
57 	"uniform sampler2D\tsampler2d;\n"
58 	"\n"
59 	"varying mediump vec2\ttexCoord;\n"
60 	"\n"
61 	"void main()\n"
62 	"{\n"
63 	"\tgl_FragColor = texture2D(sampler2d, texCoord);\n"
64 	"}\n";
65 
66 // ******** End: Print3DFragShaderLogo.fsh ********
67 
68 // ******** Start: Print3DVertShaderLogo.vsh ********
69 
70 // File data
71 static const char _Print3DVertShaderLogo_vsh[] =
72 	"attribute highp vec4\tmyVertex;\n"
73 	"attribute mediump vec2\tmyUV;\n"
74 	"\n"
75 	"uniform highp mat4\t\tmyMVPMatrix;\n"
76 	"\n"
77 	"varying mediump vec2\ttexCoord;\n"
78 	"\n"
79 	"void main()\n"
80 	"{\n"
81 	"\tgl_Position = myMVPMatrix * myVertex;\n"
82 	"\ttexCoord = myUV.st;\n"
83 	"}\n";
84 
85 // ******** End: Print3DVertShaderLogo.vsh ********
86 
87