Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spotlight Polygon (suggest) #22

Open
jonlepage opened this issue May 3, 2018 · 2 comments
Open

Spotlight Polygon (suggest) #22

jonlepage opened this issue May 3, 2018 · 2 comments

Comments

@jonlepage
Copy link

jonlepage commented May 3, 2018

It would be great to see another type of light.
A polygonal light for emulate a spot light.

"spot" : Spotlight
A directional light with with range cone.
var shape = new PIXI.Polygon (points,...)

If that can give a good idea.
It's a suggestion.

PIXI.lights.Spotlight({
        type: "Spotlight",        // Light type,
        diffuse:  [1.0,1.0,1.0],  // Diffuse Light color.
        specular: [0.1,0.1,0.1],  // Specular Light color.
        intensity: 1.0,           // Light intensity.
        distance: 10.0,           // Maximum light distance for point lights.
        cutoff: 60.0,             // For spotlight types this is the cut-off angle of the cone.
    });
@jonlepage
Copy link
Author

jonlepage commented May 4, 2018

@schellenbergk
Copy link

I'd love to use this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants