Quadravol can be picked up and selected, more later.
Removed subpixel shader (causes rendering issues).
This commit is contained in:
parent
38981732f3
commit
b9cfcaee04
25 changed files with 171 additions and 20 deletions
8
shaders/glsl/BrightCanvas.fp
Normal file
8
shaders/glsl/BrightCanvas.fp
Normal 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.);
|
||||
}
|
||||
|
|
@ -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.);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue