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,11 +1,11 @@
|
|||
vec4 ProcessTexel()
|
||||
void SetupMaterial( inout Material mat )
|
||||
{
|
||||
const vec3 fadecol = vec3(.9,.1,.2);
|
||||
vec2 coord = vTexCoord.st+vec2(timer*.02,0.);
|
||||
coord = fract(coord);
|
||||
vec3 base = getTexel(coord).rgb;
|
||||
float dist = abs(vTexCoord.s-.5)*2.;
|
||||
vec3 col = mix(vec3(1.),fadecol,vec3(min(1.,dist*1.3)));
|
||||
col = mix(col,vec3(0.),vec3(min(1.,dist)));
|
||||
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