📄 threejs/Addons/Objects/SkyMesh

File: SkyMesh.md | Updated: 11/15/2025


title: SkyMesh category: Addons layout: docs

SkyMesh

Represents a skydome for scene backgrounds. Based on A Practical Analytic Model for Daylight aka The Preetham Model, the de facto standard for analytical skydomes.

Note that this class can only be used with WebGLRenderer. When using WebGPURenderer, use SkyMesh.

More references:

Code Example

const sky = new SkyMesh();
sky.scale.setScalar( 10000 );
scene.add( sky );

Import

SkyMesh is an addon, and must be imported explicitly, see Installation#Addons.

import { SkyMesh } from 'three/addons/objects/SkyMesh.js';

Constructor

new SkyMesh()

Constructs a new skydome.

Properties

.isSky : boolean (readonly)

This flag can be used for type testing.

Default is true.

.mieCoefficient : UniformNode.<float>

The mieCoefficient uniform.

.mieDirectionalG : UniformNode.<float>

The mieDirectionalG uniform.

.rayleigh : UniformNode.<float>

The rayleigh uniform.

.sunPosition : UniformNode.<vec3>

The sun position uniform.

.turbidity : UniformNode.<float>

The turbidity uniform.

.upUniform : UniformNode.<vec3>

The up position.

Source

examples/jsm/objects/SkyMesh.js