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,10 +1,10 @@
|
|||
vec4 ProcessTexel()
|
||||
void SetupMaterial( inout Material mat )
|
||||
{
|
||||
vec2 coord = vTexCoord.st*4.-vec2(0.,timer*0.1);
|
||||
coord = fract(coord);
|
||||
vec3 base = getTexel(coord).rgb;
|
||||
float dist = pow(distance(vec2(.5),vTexCoord.st)*1.4,.5);
|
||||
vec3 col = mix(vec3(1.,.9,.7),vec3(0.),min(1.,dist));
|
||||
col *= 1.-vTexCoord.t*.8;
|
||||
return vec4(base*col,1.);
|
||||
mat.Base = vec4(base*col,1.);
|
||||
mat.Normal = ApplyNormalMap(vTexCoord.st);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue