Fully functional scripted texture for Sheen HMG.
This commit is contained in:
parent
58711d3649
commit
b77498781a
13 changed files with 46 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue