Small fixes for VKDoom compatibility.
This commit is contained in:
parent
2632d248f7
commit
ad60f2310d
9 changed files with 6 additions and 24 deletions
|
|
@ -70,6 +70,5 @@ void SetupMaterial( inout Material mat )
|
|||
mat.Base.rgb += envcol*mask.z;
|
||||
#endif
|
||||
mat.Normal = ApplyNormalMap(vTexCoord.st);
|
||||
if ( (uTextureMode&TEXF_Brightmap) != 0 )
|
||||
mat.Bright = texture(brighttexture,vTexCoord.st);
|
||||
mat.Bright = texture(brighttexture,vTexCoord.st);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,6 @@ void SetupMaterial( inout Material mat )
|
|||
mat.Base = getTexel(vTexCoord.st);
|
||||
mat.Base.rgb *= OVERFACT;
|
||||
mat.Normal = ApplyNormalMap(vTexCoord.st);
|
||||
if ( (uTextureMode&TEXF_Brightmap) != 0 )
|
||||
{
|
||||
mat.Bright = texture(brighttexture,vTexCoord.st);
|
||||
mat.Bright.rgb *= OVERFACT;
|
||||
}
|
||||
mat.Bright = texture(brighttexture,vTexCoord.st);
|
||||
mat.Bright.rgb *= OVERFACT;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,8 +29,7 @@ void SetupMaterial( inout Material mat )
|
|||
#endif
|
||||
mat.Base = vec4(base.rgb+envcol*mask,base.a);
|
||||
mat.Normal = ApplyNormalMap(vTexCoord.st);
|
||||
if ( (uTextureMode&TEXF_Brightmap) != 0 )
|
||||
mat.Bright = texture(brighttexture,vTexCoord.st);
|
||||
mat.Bright = texture(brighttexture,vTexCoord.st);
|
||||
// status canvas tex (only need two channels)
|
||||
vec2 fade = texture(fadetex,vec2(.5)).rg;
|
||||
// red: battery connection led
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue