Talk:High-dynamic-range rendering: Difference between revisions

Content deleted Content added
SineBot (talk | contribs)
Line 567:
:<math>final.rgb=(color.rgb)^{1/2}.</math>
:But in this way you will get colours graying, because orange colour will become almost like yellow, so algorithm should be this:
:<math>final.rgb=color.rgb / sqrt(max(color.r, max(color.g, color.b)));</math> 0<color.rgb<1. Function "sqrt()" is square root in programing language (HLSL). Function "max(,)" choosing bigger number from two numbers. Compressed luminance is good for adding weak and strong light and don't get overbright light; and weak light still be looking pretty strong alone. But then why need such things like light attenuation so perhaps better use normal HDR without compressed luminance. BTW sky light is blue, lamp light is yellow, together white, thats how they not overbirighting each over perhaps. <small><span class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Versatranitsonlywaytofly|Versatranitsonlywaytofly]] ([[User talk:Versatranitsonlywaytofly|talk]] • [[Special:Contributions/Versatranitsonlywaytofly|contribs]]) 14:13, 7 December 2011 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->