メインコンテンツまでスキップ

<pc-scene>

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

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

Attributes

属性 (Attribute)説明
fogThe type of fog to use. Can be linear, exp, or exp2.
fog-colorThe color of the fog. Can be a CSS color string or a hex color code.
fog-startThe start distance of the fog.
fog-endThe end distance of the fog.
fog-densityThe density of the fog.

<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.