lights icon indicating copy to clipboard operation
lights copied to clipboard

Spotlight Polygon (suggest)

Open jonlepage opened this issue 7 years ago • 2 comments

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 avatar May 03 '18 01:05 jonlepage

https://webglfundamentals.org/webgl/lessons/webgl-3d-lighting-spot.html telechargement

jonlepage avatar May 04 '18 04:05 jonlepage

I'd love to use this one

schellenbergk avatar Apr 30 '22 00:04 schellenbergk