mirror of
https://github.com/XProger/OpenLara.git
synced 2025-07-31 02:10:35 +02:00
fix D3D9 shaders compilation
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user