2012-04-03 23:30:07 -04:00
|
|
|
varying mediump vec2 xlv_TEXCOORD0;
|
|
|
|
uniform mediump float _EmberFadeStart;
|
|
|
|
uniform mediump float _EmberFadeEnd;
|
|
|
|
uniform sampler2D _BurntTex;
|
|
|
|
uniform sampler2D _MainTex;
|
|
|
|
void main ()
|
|
|
|
{
|
2012-10-07 23:41:18 -04:00
|
|
|
lowp float t_1;
|
|
|
|
mediump float tmpvar_2;
|
|
|
|
tmpvar_2 = clamp (((_EmberFadeStart - 0.05) / (_EmberFadeStart - _EmberFadeEnd)), 0.0, 1.0);
|
|
|
|
t_1 = tmpvar_2;
|
|
|
|
lowp vec4 tmpvar_3;
|
|
|
|
tmpvar_3.w = 1.0;
|
|
|
|
tmpvar_3.xyz = mix (texture2D (_MainTex, xlv_TEXCOORD0).xyz, texture2D (_BurntTex, xlv_TEXCOORD0).xyz, vec3(t_1));
|
|
|
|
gl_FragColor = tmpvar_3;
|
2012-04-03 23:30:07 -04:00
|
|
|
}
|
|
|
|
|