(03-11-2015, 06:39 AM)mendus Wrote: Hi all,Heh, I didn't expect anyone to ever find that post again :p
@neobrain Did you manage to solve the problem with linear interpolation? I was reading through the thread and couldn't resist posting.
Anyway, in addition to what I said in the post that Shonumi linked to, this is also implemented in Dolphin now, in the WriteTevRegular function at https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/VideoCommon/PixelShaderGen.cpp#L951 . That one is a bit more generic than what I was writing before.
(03-11-2015, 07:10 AM)tueidj Wrote: Pretty sure the GC documentation mentions that mapping from 0-255 to 0-256 is accomplished by "out = in + (in>>7)".That was only (the already known) part of the issue, though.
