Skip to content

Commit 6418f7e

Browse files
committed
r2_types: Update implementation.
1 parent 1c9b7d9 commit 6418f7e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Layers/xrRenderPC_GL/r2_types.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,12 @@ const u32 LUMINANCE_size = 16 ;
8989

9090
// sun
9191
#define SE_SUN_NEAR 0
92-
#define SE_SUN_FAR 1
93-
#define SE_SUN_LUMINANCE 2
94-
#define SE_SUN_NEAR_MINMAX 3
92+
#define SE_SUN_MIDDLE 1
93+
#define SE_SUN_FAR 2
94+
#define SE_SUN_LUMINANCE 3
95+
#define SE_SUN_NEAR_MINMAX 4
9596
// For rain R3 rendering
96-
#define SE_SUN_RAIN_SMAP 3
97+
#define SE_SUN_RAIN_SMAP 5
9798

9899
extern float ps_r2_gloss_factor;
99100
IC float u_diffuse2s (float x, float y, float z) { float v = (x+y+z)/3.f; return ps_r2_gloss_factor * ((v<1)?powf(v,2.f/3.f):v); }

0 commit comments

Comments
 (0)