|
@@ -1,8 +1,5 @@
|
|
/**
|
|
/**
|
|
* @author spidersharma / http://eduperiment.com/
|
|
* @author spidersharma / http://eduperiment.com/
|
|
- *
|
|
|
|
- * Inspired from Unreal Engine
|
|
|
|
- * https://docs.unrealengine.com/latest/INT/Engine/Rendering/PostProcessEffects/Bloom/
|
|
|
|
*/
|
|
*/
|
|
|
|
|
|
import {
|
|
import {
|
|
@@ -21,6 +18,15 @@ import { Pass } from "../postprocessing/Pass.js";
|
|
import { CopyShader } from "../shaders/CopyShader.js";
|
|
import { CopyShader } from "../shaders/CopyShader.js";
|
|
import { LuminosityHighPassShader } from "../shaders/LuminosityHighPassShader.js";
|
|
import { LuminosityHighPassShader } from "../shaders/LuminosityHighPassShader.js";
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * UnrealBloomPass is inspired by the bloom pass of Unreal Engine. It creates a
|
|
|
|
+ * mip map chain of bloom textures and blurs them with different radii. Because
|
|
|
|
+ * of the weighted combination of mips, and because larger blurs are done on
|
|
|
|
+ * higher mips, this effect provides good quality and performance.
|
|
|
|
+ *
|
|
|
|
+ * Reference:
|
|
|
|
+ * - https://docs.unrealengine.com/latest/INT/Engine/Rendering/PostProcessEffects/Bloom/
|
|
|
|
+ */
|
|
var UnrealBloomPass = function ( resolution, strength, radius, threshold ) {
|
|
var UnrealBloomPass = function ( resolution, strength, radius, threshold ) {
|
|
|
|
|
|
Pass.call( this );
|
|
Pass.call( this );
|