GpuEnvironmentMap class final

An EnvironmentMapData on the GPU: its levels in one half-float cube texture, its spherical harmonics beside it. Give it to Environment.map and lit surfaces take their ambient light and reflections from it; with Environment.skybox the sky shows it.

Constructors

GpuEnvironmentMap.upload(GpuDevice device, EnvironmentMapData data)
Uploads data to device. As many levels as the device takes (GpuDevice.maxMipLevels: Flutter GPU leaves out the 1×1 level) are uploaded.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
levelCount → int
How many levels the cube has.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sh → Float32List
Diffuse light: nine RGB coefficients.
final
texture → GpuTexture
The cube, its levels from sharp to blurred.
final

Methods

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