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:
parent
d5e46a9645
commit
3a2082eab4
@ -99,7 +99,7 @@ struct VS_INPUT {
|
|||||||
#if defined(_GAPI_GXM)
|
#if defined(_GAPI_GXM)
|
||||||
#define SAMPLE_SHADOW(T,uv) f1tex2Dproj(T, uv)
|
#define SAMPLE_SHADOW(T,uv) f1tex2Dproj(T, uv)
|
||||||
#else
|
#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
|
#endif
|
||||||
|
|
||||||
#define SAMPLE_3D(T,uv) tex3D(T, uv)
|
#define SAMPLE_3D(T,uv) tex3D(T, uv)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user