Oops.
This commit is contained in:
parent
eb22908e95
commit
b453560f59
2 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ void SetupMaterial( inout Material mat )
|
|||
vec2 fcoord = fract(pos*size-vec2(.5));
|
||||
vec2 coeff = fcoord*6.; // virtual upscale factor I guess?
|
||||
float threshold = 0.; // this controls sharpness, kinda
|
||||
coeff = (coeff-threshold)*1./(1.-2*threshold);
|
||||
coeff = (coeff-threshold)*1./(1.-2.*threshold);
|
||||
coeff = clamp(coeff,0.,1.);
|
||||
mat.Base = texture(tex,pos+pxsize*(coeff-fcoord));
|
||||
mat.Normal = ApplyNormalMap(vTexCoord.st);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue