Skip to content

Commit

Permalink
r2_types: Update implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Nov 24, 2015
1 parent 1c9b7d9 commit 6418f7e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Layers/xrRenderPC_GL/r2_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,12 @@ const u32 LUMINANCE_size = 16 ;

// sun
#define SE_SUN_NEAR 0
#define SE_SUN_FAR 1
#define SE_SUN_LUMINANCE 2
#define SE_SUN_NEAR_MINMAX 3
#define SE_SUN_MIDDLE 1
#define SE_SUN_FAR 2
#define SE_SUN_LUMINANCE 3
#define SE_SUN_NEAR_MINMAX 4
// For rain R3 rendering
#define SE_SUN_RAIN_SMAP 3
#define SE_SUN_RAIN_SMAP 5

extern float ps_r2_gloss_factor;
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); }
Expand Down

0 comments on commit 6418f7e

Please sign in to comment.