File tree Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Expand file tree Collapse file tree 4 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 3737#ifndef SMAP_size
3838#define SMAP_size 1024
3939#endif
40- #define PARALLAX_H 0.02
41- #define parallax float2(PARALLAX_H, -PARALLAX_H/2)
4240
4341#ifdef USE_R2_STATIC_SUN
4442# define xmaterial half(1.0h/4.h)
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ uniform float3 eye_position;
2727uniform half3 eye_direction ;
2828uniform half3 eye_normal ;
2929uniform float4 dt_params ;
30+ uniform float4 parallax ;
3031
3132half3 unpack_normal (half3 v ) { return 2 * v - 1 ; }
3233half3 unpack_bx2 (half3 v ) { return 2 * v - 1 ; }
Original file line number Diff line number Diff line change 1717#ifndef SMAP_size
1818#define SMAP_size 1024
1919#endif
20- #define PARALLAX_H 0.02
21- #define parallax float2(PARALLAX_H, -PARALLAX_H/2)
2220//////////////////////////////////////////////////////////////////////////////////////////
2321
2422#endif // common_defines_h_included
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ cbuffer static_globals
4646 uniform float4 pos_decompression_params ;
4747 uniform float4 pos_decompression_params2 ;
4848
49+ uniform float4 parallax ;
4950// uniform float4 screen_res; // Screen resolution (x-Width,y-Height, zw - 1/resolution)
5051}
5152
You can’t perform that action at this time.
0 commit comments