GradientMarker

GradientMarker -- Outil pour affiner les changements d'éclairage entre les différentes zones(typiquement entre les zones interieurs et exterieur).

Liste des variables

- Color 0/1  
- Dark Light  
- Height  
- Name  
- Parent  
- SpawnFlags  
- Target  

Info +

GradientMarker   (Davor Hunski)

-Gradient marker is used to define gradient (interpolated color) that is applied as additional shadow. It is used to create more realistic lighting model, since real life light reflects from floors and ceilings, creating shadows that tend to be darker near ceiling and fall gradually towards floor. The same thing happens with illuminating planes, where light intensity falls away from illuminating plane. Position of gradient marker determines origin of gradient. Shadow is interpolated from two given shadow colors along given height. Gradient can also be applied as a dark light, where it is used to remove existing light. Shadow gradients are used to simulate radiosity. See WorldBase->Gradient 0 thru 19 discussion, to find out how gradient markers are linked with polygons (how gradiental shadow can be attached to a polygon).

 

Color 0 and 1

-color properties. These two colors are used for shadow interpolation. Center of gradient marker is used as origin of interpolation, point where gradient shadow has value defined with color 0. At distance greater or equal to value defined with 'Height' property, shadow has value given through color 1 property. Rotation of entity is also calculated, so angled gradiental shadows are also possible.

 

Dark light

-flag property. If this flag is true, gradient is subtracted from, instead of added to, shadow that applies gradiental shadow.

Height

-float number property. Used to define direction and length of gradient. If height is negative, direction of interpolation is changed (gradient is interpolated down from position of gradient marker).

Obsolete (explained above)

Target