Make sure to only use transparency if enabled for pbr shader
This commit is contained in:
parent
ae1f2ebb79
commit
2ed4dd0971
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -375,8 +375,11 @@ void main()
|
|||||||
fragColor.rgb = pow(fragColor.rgb, vec3(1 / gamma));
|
fragColor.rgb = pow(fragColor.rgb, vec3(1 / gamma));
|
||||||
|
|
||||||
// Alpha calculations.
|
// Alpha calculations.
|
||||||
float alpha = GetComponent(AlphaChannel, texture(DiffuseMap, f_texcoord0));
|
if (isTransparent == 1)
|
||||||
fragColor.a = alpha;
|
{
|
||||||
|
float alpha = GetComponent(AlphaChannel, texture(DiffuseMap, f_texcoord0));
|
||||||
|
fragColor.a = alpha;
|
||||||
|
}
|
||||||
|
|
||||||
if (RenderAsLighting)
|
if (RenderAsLighting)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user