Skip to content

Matte Shadow Material

Updated

An invisible surface that only shows the shadows cast on it, a shadow catcher.

Type
comp-matte-shadow-material
Script class
MatteShadowMaterialComponent
Per entity
One
Version
1.1.0

Read about it in Materials: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
color "#000000"
opacity 0.5 0 ≤ x ≤ 1
side "front"
wireframe false

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(MatteShadowMaterialComponent);
if (component) log(component.props);
}