OpenGL2: Merge several cvars into r_pbr.
r_glossIsRoughness, r_specularIsMetallic, r_framebufferGamma, r_tonemapGamma, r_materialGamma, r_lightGamma
This commit is contained in:
parent
41791c662f
commit
ad952b9537
11 changed files with 88 additions and 108 deletions
|
@ -14,8 +14,8 @@ vec3 GetValues(vec2 offset, vec3 current)
|
|||
|
||||
#ifdef FIRST_PASS
|
||||
|
||||
#if defined(r_framebufferGamma)
|
||||
minAvgMax = pow(minAvgMax, vec3(r_framebufferGamma));
|
||||
#if defined(USE_PBR)
|
||||
minAvgMax = pow(minAvgMax, vec3(2.2));
|
||||
#endif
|
||||
|
||||
float lumi = max(dot(LUMINANCE_VECTOR, minAvgMax), 0.000001);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue