fromCubemap method

dynamic fromCubemap(
  1. dynamic cubemap, [
  2. dynamic renderTarget
])

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.

Implementation

fromCubemap(cubemap, [renderTarget]) {
  return _fromTexture(cubemap, renderTarget);
}