Fully functional scripted texture for Sheen HMG.

This commit is contained in:
Mari the Deer 2022-07-25 02:07:07 +02:00
commit b77498781a
13 changed files with 46 additions and 5 deletions

View file

@ -7,7 +7,7 @@
void SetupMaterial( inout Material mat )
{
mat.Base = getTexel(vTexCoord.st);
mat.Base = texture(scrtex,vec2(vTexCoord.s,1.-vTexCoord.t)); // canvas textures are upside-down when used by models
vec2 uv = (vTexCoord.st*vec2(textureSize(tex,0)))/GRIDSZ;
mat.Base *= 1.5*texture(pixtex,uv);
mat.Normal = ApplyNormalMap(vTexCoord.st);