SkyDome class final

An inside-out sphere, which is a sky the camera sits at the centre of.

Small on purpose — see the library docstring: a large one is eaten by the fog. Ten metres clears any sensible near plane and is far short of any sensible far plane, so it neither clips at the eye nor sorts oddly.

rings and segments decide how smooth the gradient is, and smooth is all they buy: the colour is per vertex, so a coarse dome gives visible bands exactly where the gradient changes fastest.

Inheritance

Constructors

SkyDome({double radius = 10.0, int rings = 24, int segments = 32, String name = 'sky'})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
Name for diagnostics and UI labels.
final
radius → double
final
rings → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segments → int
final

Methods

build({VertexLayout layout = VertexLayout.standard}) → MeshData
Generates the geometry for the requested layout.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited