aboutsummaryrefslogtreecommitdiffstats
path: root/res/raw
diff options
context:
space:
mode:
authorjruesga <jorge@ruesga.com>2013-07-01 02:42:54 +0200
committerjruesga <jorge@ruesga.com>2013-07-01 02:42:54 +0200
commitf29d68d929061ccbb982019c5020be721bbef862 (patch)
tree24ce41fb0dd7f942ca9dbe956fe93fe836da66c2 /res/raw
downloadandroid_packages_wallpapers_PhotoPhase-f29d68d929061ccbb982019c5020be721bbef862.tar.gz
android_packages_wallpapers_PhotoPhase-f29d68d929061ccbb982019c5020be721bbef862.tar.bz2
android_packages_wallpapers_PhotoPhase-f29d68d929061ccbb982019c5020be721bbef862.zip
Initial commit
Signed-off-by: jruesga <jorge@ruesga.com>
Diffstat (limited to 'res/raw')
-rw-r--r--res/raw/alpha_fragment_shader.glsl26
-rw-r--r--res/raw/alpha_vertex_shader.glsl30
-rw-r--r--res/raw/color_fragment_shader.glsl23
-rw-r--r--res/raw/color_vertex_shader.glsl27
-rw-r--r--res/raw/default_fragment_shader.glsl24
-rw-r--r--res/raw/default_vertex_shader.glsl27
-rw-r--r--res/raw/translate_fragment_shader.glsl24
-rw-r--r--res/raw/translate_vertex_shader.glsl27
8 files changed, 208 insertions, 0 deletions
diff --git a/res/raw/alpha_fragment_shader.glsl b/res/raw/alpha_fragment_shader.glsl
new file mode 100644
index 0000000..777f6a2
--- /dev/null
+++ b/res/raw/alpha_fragment_shader.glsl
@@ -0,0 +1,26 @@
+/*
+ * Copyright (C) 2013 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+precision mediump float;
+
+uniform sampler2D sTexture;
+
+varying vec2 vTextureCoord;
+varying float vAlpha;
+
+void main() {
+ gl_FragColor = texture2D(sTexture, vTextureCoord);
+}
diff --git a/res/raw/alpha_vertex_shader.glsl b/res/raw/alpha_vertex_shader.glsl
new file mode 100644
index 0000000..d411ad5
--- /dev/null
+++ b/res/raw/alpha_vertex_shader.glsl
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2013 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+uniform mat4 uMVPMatrix;
+
+attribute vec4 aPosition;
+attribute vec2 aTextureCoord;
+attribute float aAlpha;
+
+varying vec2 vTextureCoord;
+varying float vAlpha;
+
+void main() {
+ gl_Position = uMVPMatrix * aPosition;
+ vTextureCoord = aTextureCoord;
+ vAlpha = aAlpha;
+}
diff --git a/res/raw/color_fragment_shader.glsl b/res/raw/color_fragment_shader.glsl
new file mode 100644
index 0000000..d1ad102
--- /dev/null
+++ b/res/raw/color_fragment_shader.glsl
@@ -0,0 +1,23 @@
+/*
+ * Copyright (C) 2013 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+precision mediump float;
+
+varying vec4 vColor;
+
+void main() {
+ gl_FragColor = vColor;
+}
diff --git a/res/raw/color_vertex_shader.glsl b/res/raw/color_vertex_shader.glsl
new file mode 100644
index 0000000..c1143e5
--- /dev/null
+++ b/res/raw/color_vertex_shader.glsl
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2013 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+uniform mat4 uMVPMatrix;
+
+attribute vec4 aPosition;
+attribute vec4 aColor;
+
+varying vec4 vColor;
+
+void main() {
+ gl_Position = uMVPMatrix * aPosition;
+ vColor = aColor;
+}
diff --git a/res/raw/default_fragment_shader.glsl b/res/raw/default_fragment_shader.glsl
new file mode 100644
index 0000000..55cbf0b
--- /dev/null
+++ b/res/raw/default_fragment_shader.glsl
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2013 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+precision mediump float;
+
+varying vec2 vTextureCoord;
+uniform sampler2D sTexture;
+
+void main() {
+ gl_FragColor = texture2D(sTexture, vTextureCoord);
+}
diff --git a/res/raw/default_vertex_shader.glsl b/res/raw/default_vertex_shader.glsl
new file mode 100644
index 0000000..dad4d5a
--- /dev/null
+++ b/res/raw/default_vertex_shader.glsl
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2013 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+uniform mat4 uMVPMatrix;
+
+attribute vec4 aPosition;
+attribute vec2 aTextureCoord;
+
+varying vec2 vTextureCoord;
+
+void main() {
+ gl_Position = uMVPMatrix * aPosition;
+ vTextureCoord = aTextureCoord;
+}
diff --git a/res/raw/translate_fragment_shader.glsl b/res/raw/translate_fragment_shader.glsl
new file mode 100644
index 0000000..55cbf0b
--- /dev/null
+++ b/res/raw/translate_fragment_shader.glsl
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2013 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+precision mediump float;
+
+varying vec2 vTextureCoord;
+uniform sampler2D sTexture;
+
+void main() {
+ gl_FragColor = texture2D(sTexture, vTextureCoord);
+}
diff --git a/res/raw/translate_vertex_shader.glsl b/res/raw/translate_vertex_shader.glsl
new file mode 100644
index 0000000..1229d64
--- /dev/null
+++ b/res/raw/translate_vertex_shader.glsl
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 2013 The CyanogenMod Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+uniform mat4 uMVPMatrix;
+
+attribute vec4 aPosition;
+attribute vec2 aTextureCoord;
+
+varying vec2 vTextureCoord;
+
+void main() {
+ gl_Position = uMVPMatrix * aPosition;
+ vTextureCoord = aTextureCoord;
+}