Open jonlepage opened 6 years ago
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,...)
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. });
https://webglfundamentals.org/webgl/lessons/webgl-3d-lighting-spot.html
I'd love to use this one
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.