[Bug 36236] Problems with lights in Trine game from www.humblebundle.com
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Apr 20 02:59:12 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=36236
--- Comment #21 from Turo Lamminen <turo at alternativegames.net> 2011-04-20 02:59:12 PDT ---
Try this:
Modify data/shader/cg/deferred_light_pixel.cg
On about line 75 in function getAmbientSample change this:
return lerp(half3(FOG_COLOR.xyz), result, deferredSample3.z);
to this:
return deferredSample1.xyz;
This dumps g-buffer 1 to screen. Likewise for other buffers.
g-buffers are as follows:
1 color. Should look pretty normal except for being completely fullbright
2 normals. Should be red-green-yellowish
3. light parameters. Should be mostly blue
If you want to see how this should look on a working driver you need to disable
lights. Easiest way to do this is to change function getPointlightSample around
line 460. Change
return result;
to
return half3(0.0);
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the dri-devel
mailing list