Skip to main content

<pc-scene>

The <pc-scene> tag is used to define the scene.

Usage
  • It must be a direct child of <pc-app>.

Attributes

AttributeTypeDefaultDescription
fogEnum-Fog type: "linear" | "exp" | "exp2"
fog-colorColor-Fog color as CSS color string or hex code
fog-densityNumber-Fog density for exponential fog types
fog-endNumber-End distance for linear fog
fog-startNumber-Start distance for linear fog

Example

<pc-app>
<pc-scene>
<!-- define pc-entity tags here -->
</pc-scene>
</pc-app>

JavaScript Interface

You can programmatically create and manipulate <pc-scene> elements using the SceneElement API.