Bug 10149 - Spotlight effect is zero
Summary: Spotlight effect is zero
Status: CLOSED INVALID
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-01 22:49 UTC by WuNian
Modified: 2009-08-24 12:26 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
C file (1.97 KB, text/plain)
2007-03-01 22:54 UTC, WuNian
Details

Description WuNian 2007-03-01 22:49:47 UTC
In attached C file, I enabled a spot light and only has ambient light.
No matter I changed the GL_SPOT_CUTOFF value and light position, the vertex pixel we got is zero.
Comment 1 WuNian 2007-03-01 22:54:32 UTC
Created attachment 8936 [details]
C file

In this file, you can change light position PIXEL_COLOR, and the last pixel value should be equal to PIXEL_COLOR.

compile command:
cc -g -o spotlight spotlight.c -lglut -lGLU -lGL -lm
Comment 2 WuNian 2007-03-02 00:17:11 UTC
Mistake setting light as infinite light. To spot light, it should be positional light.
Comment 3 Adam Jackson 2009-08-24 12:26:03 UTC
Mass version move, cvs -> git


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.