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
|
|
@ -33,7 +33,7 @@ float fbm(vec2 uv)
|
|||
return f;
|
||||
}
|
||||
|
||||
vec4 ProcessTexel()
|
||||
void SetupMaterial( inout Material mat )
|
||||
{
|
||||
vec2 uv = vTexCoord.st;
|
||||
uv.y = 1.0-uv.y;
|
||||
|
|
@ -47,5 +47,6 @@ vec4 ProcessTexel()
|
|||
c1=clamp(c1,0.,1.);
|
||||
vec3 col = vec3(1.8*c1*c1*c1, 1.2*c1*c1*c1*c1, 2.2*c1*c1);
|
||||
float a = clamp(c * (1.-pow(uv.y,3.)),0.,1.);
|
||||
return pow(getTexel(vTexCoord.st),vec4(2.))+vec4(mix(vec3(0.),col,a),0.0);
|
||||
mat.Base = pow(getTexel(vTexCoord.st),vec4(2.))+vec4(mix(vec3(0.),col,a),0.0);
|
||||
mat.Normal = ApplyNormalMap(vTexCoord.st);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue