Skip to reading
Cameras, Lighting & Rendering

47 Object shadow settings and contact patches

Edition 0.86.4.3

0.86.4.3 edition with revised lessons, updated cross-references and new cinematic/camera-safety supplements. Earlier examples, screenshots and registry figures retain their stated edition context.

Download PDFView PDF page

The shadow dictionary belongs to the object or scene character instance. It controls that object’s casting, receiving and helper contact patch. These fields are advanced record settings in the current Inspector layout.

Code example
"shadow": {
    "cast": true, "receive": true,
    "doubleSided": false, "transparent": false,
    "optimization": "static",
    "contactEnabled": false,
    "contactSize": 1.0, "contactOpacity": 0.32
}

Use doubleSided carefully on a thin surface that needs both sides represented for casting. Check the actual model before using it everywhere. Transparent shadow handling can alter how an alpha material participates; it does not make every translucent shader behave like solid geometry.

Contact Shadow creates a soft flat patch near the object’s base. It can help a character feel grounded when full shadows are too expensive. It is not a screen-space contact-shadow ray trace, and it does not automatically conform to stairs or sloping terrain.

Optimization static/dynamic/disabled selects indirect-light geometry participation. It is not a general promise to cache all direct shadows. Mark a script-moved prop dynamic when using indirect lighting.

Page 53 of 109Permalink
Go to page