Logarithm

If there is something important you think is missing in the current version of ZGameEditor then you can post a feature request here!

Moderator: Moderators

Post Reply
User avatar
Kjell
Posts: 1915
Joined: Sat Feb 23, 2008 11:15 pm

Logarithm

Post by Kjell »

:!:

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

K
User avatar
VilleK
Site Admin
Posts: 2355
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

Yes I should add this. Kjell, are you asking for the function that is called log2 in glsl?
User avatar
Kjell
Posts: 1915
Joined: Sat Feb 23, 2008 11:15 pm

Post by Kjell »

:)

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

K
Post Reply