bw logo

Chapter 31. shadows.xml

Located under bigworld/res/system/data, this file is used by the 3D game engine to configure various shadowing capabilities.

The grammar is listed below:

<shadows.xml>

  <enabled>   true|false </enabled>
  <intensity> float      </intensity>
  <distance>  float      </distance>
  <fadeStart> float      </fadeStart>
  <buferSize> integer    </bufferSize>
  <maxCount>  integer    </maxCount>

</shadows.xml>

Grammar of shadow configuration file

The list below describes the tags in the shadow configuration file:

  • bufferSize

    Size of the shadow texture.

  • distance

    Shadow cut-off distance.

  • enabled

    Toggles the availability of shadows in the engine.

  • fadeStart

    Distance from which shadow will start to face.

    It will face until reaches distance.

  • intensity

    Maximum shadow intensity.

    Value ranges from 0 (fully transparent) to 1 (fully opaque).

  • maxCount

    Maximum number of simultaneous dynamic shadows casters in a scene.

    This is the default value, but it is possible to set a smaller amount via graphics settings. The options available are derived by bit shifting this value towards zero.