1.3.1 update. compatibility w/ newer versions of source ports.
This commit is contained in:
parent
66fdfe4197
commit
23c58058f3
23 changed files with 69 additions and 140 deletions
|
|
@ -1,4 +1,4 @@
|
|||
vec4 ProcessTexel()
|
||||
void SetupMaterial( inout Material mat )
|
||||
{
|
||||
vec2 ccoord = vTexCoord.st-vec2(.5);
|
||||
if ( ccoord.y < 0. ) ccoord.x *= -1.;
|
||||
|
|
@ -8,16 +8,14 @@ vec4 ProcessTexel()
|
|||
vec2 coord;
|
||||
vec3 col = vec3(0.);
|
||||
coord = proj*.142536+vec2(-.3,-1.)*timer*.0925436;
|
||||
coord = fract(coord);
|
||||
col += getTexel(coord).rgb;
|
||||
coord = proj*.123234+vec2(0.,-1.)*timer*.092346;
|
||||
coord = fract(coord);
|
||||
col += getTexel(coord).rgb;
|
||||
coord = proj*.145463+vec2(.3,-1.)*timer*.093242;
|
||||
coord = fract(coord);
|
||||
col += getTexel(coord).rgb;
|
||||
col *= vec3(1.2,.4,.8);
|
||||
col += vec3(.9,.7,1.6)*pow(max(1.2-abs(ccoord.y)*2.4,0.),6.);
|
||||
col = clamp(col,vec3(0.),vec3(1.));
|
||||
return vec4(col,1.);
|
||||
mat.Base = vec4(col,1.);
|
||||
mat.Normal = ApplyNormalMap(vTexCoord.st);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue