Class: SimpleLightmapFilter

SimpleLightmapFilter

SimpleLightmap, originally by Oza94 http://www.html5gamedevs.com/topic/20027-pixijs-simple-lightmapping/ http://codepen.io/Oza94/pen/EPoRxj

You have to specify filterArea, or suffer consequences. You may have to use it with filter.dontFit = true, until we rewrite this using same approach as for DisplacementFilter.

originalfilter

new SimpleLightmapFilter (options)

Name Type Description
options SimpleLightmapFilterOptions

Options for the SimpleLightmapFilter constructor.

See:

Example

displayObject.filters = [new SimpleLightmapFilter(texture, 0x666666)];

Extends

  • Filter

Members

DEFAULT_OPTIONS SimpleLightmapFilterOptions staticreadonly

Default values for options.

alpha number

Coefficient for alpha multiplication

Default Value:
  • 1

color ColorSource

The color value of the ambient color

Default Value:
  • 0x000000
Example
[1.0, 1.0, 1.0] = 0xffffff

lightMap Texture

A sprite where your lightmap is rendered