17 Jun
2015
17 Jun
'15
12:36 p.m.
On 16 June 2015 at 22:45, Matteo Bruni <mbruni(a)codeweavers.com> wrote:
get_fog_start_end(context, state, &start, &end); - scale = 1.0f / (end - start); + scale = end == start ? INFINITY : 1.0f / (end - start);
Do we really need this? It almost feels nicer to just pass "end - start" to the shader and handle the division there, or perhaps even just pass "start".