Can Light focus on model?

Started by denzel, February 29, 2012, 10:46:19 AM

Previous topic - Next topic

denzel

Just like a light focus on a actor in the stage.
I think the Light in JPCE-AE is a pointolite like the sun, is there a way to make a Cone-Light?


EgonOlsen

In a way that a only a small part of the scene is lit or in a way that the cone is actually visible like in the image?

denzel

In a way that a only a small part of the scene is lit ,like a spotlight
or put it another way,it's that there's parameter for GL_SPOT_CUTOFF in ES

EgonOlsen

jPCT-AE doesn't support any attenuation or cut off for lights, because i couldn't get it to work properly on a variety of devices....so i finally decided to disable support for it. When using OpenGL ES 2.0, you should be able to write a shader that does it, if that's an option.

denzel