Noselfshadows

From The DarkMod Wiki
Revision as of 17:40, 4 November 2007 by Greebo (talk | contribs) (New page: The best way to explain the noselfshadows keyword is an example: 250px 250px The lion in the screenshots has '''noselfshadow''' def...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The best way to explain the noselfshadows keyword is an example:

The lion in the screenshots has noselfshadow defined in his material. This means, that

  1. other surfaces without noselfshadows can cast shadows on the lion (e.g. the pillar can cast on lion).
  2. the lion cannot cast shadows on other surfaces with noselfshadows. This trivially includes the lion itself.
  3. the lion can cast shadows on other materials without noselfshadows (e.g. the pillar in the background).

In other words, noselfshadow inhibits casting shadows if

originMaterial.noSelfShadows == true && targetMaterial.noSelfShadows == true