Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F131219
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/data/menu/icon.bmp b/data/menu/icon.bmp
new file mode 100644
index 00000000..3f2aae6c
Binary files /dev/null and b/data/menu/icon.bmp differ
diff --git a/data/shaders/lit-sprite.fragment.glsl b/data/shaders/lit-sprite.fragment.glsl
new file mode 100644
index 00000000..a6b4b5b3
--- /dev/null
+++ b/data/shaders/lit-sprite.fragment.glsl
@@ -0,0 +1,19 @@
+#ifdef GL_ES
+precision mediump float;
+#endif
+
+uniform sampler2D al_tex;
+uniform float light_intensity;
+uniform vec4 light_color;
+uniform bool al_use_tex;
+varying vec4 varying_color;
+varying vec2 varying_texcoord;
+void main(){
+ if (al_use_tex){
+ vec4 tex_color = varying_color * texture2D(al_tex, varying_texcoord);
+ vec4 blended_light_color = tex_color.a * light_color;
+ gl_FragColor = vec4(tex_color.rgb + (blended_light_color.rgb - tex_color.rgb) * light_intensity, tex_color.a);
+ } else {
+ gl_FragColor = varying_color;
+ }
+}
diff --git a/data/shaders/shadow.fragment.glsl b/data/shaders/shadow.fragment.glsl
new file mode 100644
index 00000000..8a29ac48
--- /dev/null
+++ b/data/shaders/shadow.fragment.glsl
@@ -0,0 +1,17 @@
+#ifdef GL_ES
+precision mediump float;
+#endif
+uniform sampler2D al_tex;
+uniform bool al_use_tex;
+uniform vec4 shadow;
+varying vec4 varying_color;
+varying vec2 varying_texcoord;
+
+void main(){
+ if (al_use_tex){
+ vec4 sample = texture2D(al_tex, varying_texcoord);
+ gl_FragColor = vec4(shadow.r, shadow.g, shadow.b, shadow.a * sample.a);
+ } else {
+ gl_FragColor = varying_color;
+ }
+}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Jun 16, 12:08 AM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
70594
Default Alt Text
(1 KB)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline