Skip to main content

<pc-render>

The <pc-render> tag is used to define a render component that renders a 3D primitive.

note

Attributes

AttributeDescription
typeThe type of render component. Can be box, capsule, cone, cylinder, plane or sphere.
cast-shadowsValueless attribute. If present, the render component casts shadows.
receive-shadowsValueless attribute. If present, the render component receives shadows.

Example

JavaScript Interface

You can programmatically create and manipulate <pc-render> elements using the RenderComponentElement API.