|
|
@@ -128,6 +128,13 @@ class PMREMGenerator {
|
|
|
* 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).
|
|
|
+ *
|
|
|
+ * @param {Scene} scene - The scene to be captured.
|
|
|
+ * @param {Number} [sigma=0] - The blur radius in radians.
|
|
|
+ * @param {Number} [near=0.1] - The near plane distance.
|
|
|
+ * @param {Number} [far=100] - The far plane distance.
|
|
|
+ * @param {RenderTarget?} [renderTarget=null] - The render target to use.
|
|
|
+ * @return {RenderTarget} The resulting PMREM.
|
|
|
*/
|
|
|
fromScene( scene, sigma = 0, near = 0.1, far = 100, renderTarget = null ) {
|
|
|
|
|
|
@@ -180,6 +187,10 @@ class PMREMGenerator {
|
|
|
* 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.
|
|
|
+ *
|
|
|
+ * @param {Texture} equirectangular - The equirectangular texture to be converted.
|
|
|
+ * @param {RenderTarget?} [renderTarget=null] - The render target to use.
|
|
|
+ * @return {RenderTarget} The resulting PMREM.
|
|
|
*/
|
|
|
fromEquirectangular( equirectangular, renderTarget = null ) {
|
|
|
|
|
|
@@ -213,6 +224,10 @@ class PMREMGenerator {
|
|
|
* 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.
|
|
|
+ *
|
|
|
+ * @param {Texture} cubemap - The cubemap texture to be converted.
|
|
|
+ * @param {RenderTarget?} [renderTarget=null] - The render target to use.
|
|
|
+ * @return {RenderTarget} The resulting PMREM.
|
|
|
*/
|
|
|
fromCubemap( cubemap, renderTarget = null ) {
|
|
|
|
|
|
@@ -562,6 +577,12 @@ class PMREMGenerator {
|
|
|
* the blur latitudinally (around the poles), and then longitudinally (towards
|
|
|
* the poles) to approximate the orthogonally-separable blur. It is least
|
|
|
* accurate at the poles, but still does a decent job.
|
|
|
+ *
|
|
|
+ * @param {RenderTarget} cubeUVRenderTarget - The cubemap render target.
|
|
|
+ * @param {Number} lodIn - The input level-of-detail.
|
|
|
+ * @param {Number} lodOut - The output level-of-detail.
|
|
|
+ * @param {Number} sigma - The blur radius in radians.
|
|
|
+ * @param {Vector3} [poleAxis] - The pole axis.
|
|
|
*/
|
|
|
_blur( cubeUVRenderTarget, lodIn, lodOut, sigma, poleAxis ) {
|
|
|
|