PMREMGenerator class

Constructors

PMREMGenerator(dynamic renderer)

Properties

hashCode int
The hash code for this object.
no setterinherited
INV_PHI ↔ dynamic
getter/setter pair
MAX_SAMPLES int
getter/setter pair
PHI ↔ dynamic
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
TOTAL_LODS int
getter/setter pair

Methods

compileCubemapShader() → dynamic
  • Pre-compiles the cubemap shader. You can get faster start-up by invoking this method during
    • your texture's network fetch for increased concurrency.
  • compileEquirectangularShader() → dynamic
  • Pre-compiles the equirectangular shader. You can get faster start-up by invoking this method during
    • your texture's network fetch for increased concurrency.
  • dispose() → dynamic
  • Disposes of the PMREMGenerator's internal memory. Note that PMREMGenerator is a static class,
    • so you should not need more than one PMREMGenerator object. If you do, calling dispose() on
      • one of them will cause any others to also become unusable.
  • fromCubemap(dynamic cubemap, [dynamic renderTarget]) → dynamic
  • Generates a PMREM from an cubemap texture, which can be either LDR
    • or HDR. The ideal input cube size is 256 x 256,
      • as this matches best with the 256 x 256 cubemap output.
  • fromEquirectangular(dynamic equirectangular, [dynamic renderTarget]) → dynamic
  • Generates a PMREM from an equirectangular texture, which can be either LDR
    • or HDR. The ideal input image size is 1k (1024 x 512),
      • as this matches best with the 256 x 256 cubemap output.
  • fromScene(dynamic scene, [dynamic sigma = 0, dynamic near = 0.1, dynamic far = 100]) → dynamic
  • Generates a PMREM from a supplied Scene, which can be faster than using an
    • image if networking bandwidth is low. Optional sigma specifies a blur radius
      • in radians to be applied to the scene before PMREM generation. Optional near
      • and far planes ensure the scene is rendered in its entirety (the cubeCamera
      • is placed at the origin).
  • isFinite(dynamic value) bool
    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