mirror of https://github.com/PCSX2/pcsx2.git
Vulkan: Format tfx.glsl
This commit is contained in:
parent
2bf74622a5
commit
a7e2b98dc7
|
@ -1251,29 +1251,29 @@ void main()
|
||||||
|
|
||||||
ps_fbmask(C);
|
ps_fbmask(C);
|
||||||
|
|
||||||
#if !PS_NO_COLOR
|
#if !PS_NO_COLOR
|
||||||
#if PS_HDR == 1
|
#if PS_HDR == 1
|
||||||
o_col0 = vec4(C.rgb / 65535.0f, C.a / 255.0f);
|
o_col0 = vec4(C.rgb / 65535.0f, C.a / 255.0f);
|
||||||
#else
|
#else
|
||||||
o_col0 = C / 255.0f;
|
o_col0 = C / 255.0f;
|
||||||
#endif
|
#endif
|
||||||
#if !defined(DISABLE_DUAL_SOURCE) && !PS_NO_COLOR1
|
#if !defined(DISABLE_DUAL_SOURCE) && !PS_NO_COLOR1
|
||||||
o_col1 = alpha_blend;
|
o_col1 = alpha_blend;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PS_NO_ABLEND
|
#if PS_NO_ABLEND
|
||||||
// write alpha blend factor into col0
|
// write alpha blend factor into col0
|
||||||
o_col0.a = alpha_blend.a;
|
o_col0.a = alpha_blend.a;
|
||||||
#endif
|
#endif
|
||||||
#if PS_ONLY_ALPHA
|
#if PS_ONLY_ALPHA
|
||||||
// rgb isn't used
|
// rgb isn't used
|
||||||
o_col0.rgb = vec3(0.0f);
|
o_col0.rgb = vec3(0.0f);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if PS_ZCLAMP
|
#if PS_ZCLAMP
|
||||||
gl_FragDepth = min(gl_FragCoord.z, MaxDepthPS);
|
gl_FragDepth = min(gl_FragCoord.z, MaxDepthPS);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // PS_DATE
|
#endif // PS_DATE
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue