1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-01-17 21:09:00 +01:00

fix D3D9 shaders compilation

This commit is contained in:
XProger 2021-03-22 05:43:22 +03:00
parent d5e46a9645
commit 3a2082eab4

View File

@ -99,7 +99,7 @@ struct VS_INPUT {
#if defined(_GAPI_GXM)
#define SAMPLE_SHADOW(T,uv) f1tex2Dproj(T, uv)
#else
#define SAMPLE_SHADOW(T,uv) ((tex2D(T, uv.xy/uv.w) => uv.z/uv.w) ? 1 : 0)
#define SAMPLE_SHADOW(T,uv) ((tex2D(T, uv.xy/uv.w).r >= uv.z/uv.w) ? 1 : 0)
#endif
#define SAMPLE_3D(T,uv) tex3D(T, uv)