Quake II RTX doxygen  1.0 dev
precomputed_sky_params.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2019, NVIDIA CORPORATION. All rights reserved.
3 
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8 
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License along
15 with this program; if not, write to the Free Software Foundation, Inc.,
16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18 
19 #ifndef _PRECOMPUTED_SKY_PARAMS_
20 #define _PRECOMPUTED_SKY_PARAMS_
21 
22 #define SKY_LUM_SCALE 0.001f
23 #define SUN_LUM_SCALE 0.00001f
24 
25 #define SKY_SPECTRAL_R_TO_L (683.000000f * SKY_LUM_SCALE)
26 #define SUN_SPECTRAL_R_TO_L_R (98242.786222f * SUN_LUM_SCALE)
27 #define SUN_SPECTRAL_R_TO_L_G (69954.398112f * SUN_LUM_SCALE)
28 #define SUN_SPECTRAL_R_TO_L_B (66475.012354f * SUN_LUM_SCALE)
29 
30 #ifdef VKPT_SHADER
31 
32 const vec3 SKY_SPECTRAL_RADIANCE_TO_LUMINANCE = vec3(SKY_SPECTRAL_R_TO_L, SKY_SPECTRAL_R_TO_L, SKY_SPECTRAL_R_TO_L);
33 const vec3 SUN_SPECTRAL_RADIANCE_TO_LUMINANCE = vec3(SUN_SPECTRAL_R_TO_L_R, SUN_SPECTRAL_R_TO_L_G, SUN_SPECTRAL_R_TO_L_B);
34 
35 #endif
36 
37 #endif // _PRECOMPUTED_SKY_PARAMS_
SUN_SPECTRAL_R_TO_L_R
#define SUN_SPECTRAL_R_TO_L_R
Definition: precomputed_sky_params.h:26
SUN_SPECTRAL_R_TO_L_G
#define SUN_SPECTRAL_R_TO_L_G
Definition: precomputed_sky_params.h:27
SKY_SPECTRAL_R_TO_L
#define SKY_SPECTRAL_R_TO_L
Definition: precomputed_sky_params.h:25
SUN_SPECTRAL_R_TO_L_B
#define SUN_SPECTRAL_R_TO_L_B
Definition: precomputed_sky_params.h:28