From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 36236] Problems with lights in Trine game from
www.humblebundle.com
Date: Wed, 20 Apr 2011 02:59:12 -0700 (PDT)
Message-ID: <20110420095912.65E2313000C@annarchy.freedesktop.org>
References:
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Return-path:
Received: from annarchy.freedesktop.org (annarchy.freedesktop.org
[131.252.210.176])
by gabe.freedesktop.org (Postfix) with ESMTP id 82CD49E78B
for ;
Wed, 20 Apr 2011 02:59:12 -0700 (PDT)
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org
To: dri-devel@lists.freedesktop.org
List-Id: dri-devel@lists.freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=36236
--- Comment #21 from Turo Lamminen 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.