Page 1 of 1

Logarithm

Posted: Fri Apr 16, 2010 11:43 am
by Kjell
:!:

We need log() .. for example to calculate the UV coordinates of a RenderTarget that uses AutoPowerOfTwo ( without a ugly loop ).

K

Posted: Thu May 27, 2010 7:18 pm
by VilleK
Yes I should add this. Kjell, are you asking for the function that is called log2 in glsl?

Posted: Thu May 27, 2010 7:33 pm
by Kjell
:)

Yea that's fine .. base 2 is ( usually ) all you need when dealing with computers.

K