ig.CONFIG.

LIGHT

Light base configuration settings. IMPORTANT: Don't modify config directly! (see example)

Author:
  • Collin Hover - collinhover.com
Source:
// in order to add your own custom configuration to Impact++
// edit the file defining ig.CONFIG_USER, 'plusplus.config-user'
// ig.CONFIG_USER is never modified by Impact++ (it is strictly for your use)
// ig.CONFIG_USER is automatically merged over Impact++'s config

<static> ALPHA :Number

Alpha value from 0 to 1.

Default Value:
  • 0.25
Source:

<static> B :Number

Blue value from 0 to 1.

Default Value:
  • 1
Source:

<static> CASTS_SHADOWS :Boolean

Whether light should cast shadows on objects that are ig.EntityExtended#opaque.
- IMPORTANT: casting shadows can have a higher performance cost, use carefully!

Default Value:
  • false
Source:

<static> CASTS_SHADOWS_MOVABLE :Boolean

Whether light should cast shadows on movable objects that are ig.EntityExtended#opaque.
- IMPORTANT: casting shadows can have a higher performance cost, use carefully!

Default Value:
  • false
Source:

<static> DIFFUSE :Number

How much light should get through objects that are ig.EntityExtended#opaque.

Default Value:
  • 0.8
Source:

<static> G :Number

Green value from 0 to 1.

Default Value:
  • 1
Source:

<static> GRADIENT :Boolean

Whether light should be gradient or flat shaded.
- when false, this works well in combination with ig.CONFIG.LIGHT#PIXEL_PERFECT

Default Value:
  • true
Source:

<static> PIXEL_PERFECT :Boolean

Whether light should be drawn and scaled pixel perfectly. IMPORTANT: pixel perfect scaling has a very high performance cost, use carefully!

Default Value:
  • false
Source:

<static> R :Number

Red value from 0 to 1.

Default Value:
  • 1
Source:

<static> SAMPLES :Number

Number of passes to make when casting shadows.
- IMPORTANT: casting shadows can have a higher performance cost, use carefully!

Default Value:
  • 1
Source: