Quadravol can be picked up and selected, more later.

Removed subpixel shader (causes rendering issues).
This commit is contained in:
Mari the Deer 2022-08-13 20:27:51 +02:00
commit b9cfcaee04
25 changed files with 171 additions and 20 deletions

View file

@ -0,0 +1,8 @@
// Make canvas textures fullbright, basically
void SetupMaterial( inout Material mat )
{
mat.Base = texture(scrtex,vec2(vTexCoord.s,1.-vTexCoord.t)); // canvas textures are upside-down when used by models
mat.Normal = ApplyNormalMap(vTexCoord.st);
mat.Bright = vec4(1.);
}

View file

@ -1,15 +0,0 @@
// RGB subpixel filter for Ammo LEDs
// GRIDSZ = how many subpixels are in the texture (for layouts where subpixel patterns alternate)
#ifndef GRIDSZ
#define GRIDSZ vec2(1.,1.)
#endif
void SetupMaterial( inout Material mat )
{
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(scrtex,0)))/GRIDSZ;
mat.Base *= 1.5*texture(pixtex,uv);
mat.Normal = ApplyNormalMap(vTexCoord.st);
mat.Bright = vec4(1.);
}