Merged in graham_linden/viewer-eep-g (pull request #413)

SL-11238, SL-11337
master
Graham Madarasz 2019-06-03 17:26:46 +00:00
commit 096b892804
3 changed files with 5 additions and 4 deletions

View File

@ -12361,7 +12361,7 @@
<key>Comment</key>
<string>If TRUE, ambient light has no effect</string>
<key>Persist</key>
<integer>1</integer>
<integer>0</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
@ -12372,7 +12372,7 @@
<key>Comment</key>
<string>If TRUE, sunlight has no effect</string>
<key>Persist</key>
<integer>1</integer>
<integer>0</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
@ -12383,7 +12383,7 @@
<key>Comment</key>
<string>If TRUE, local lights have no effect</string>
<key>Persist</key>
<integer>1</integer>
<integer>0</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>

View File

@ -111,7 +111,7 @@ void main()
vec3 sun_contrib = final_da * sunlit;
#if !defined(AMBIENT_KILL)
color.rgb = amblit * 0.5;
color.rgb = pow(amblit, vec3(1.0/1.3));
color.rgb *= ambient;
#endif

View File

@ -120,6 +120,7 @@ void main()
#if !defined(AMBIENT_KILL)
color.rgb = amblit * 0.5;
color.rgb = pow(color.rgb, vec3(1.0/1.1));
color.rgb *= ambient;
#endif