Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F632167
lit-sprite.fragment.glsl
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
552 B
Referenced Files
None
Subscribers
None
lit-sprite.fragment.glsl
View Options
#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
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 15, 1:42 PM (9 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
132937
Default Alt Text
lit-sprite.fragment.glsl (552 B)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline