Skip to content

Commit b2995bd

Browse files
committed
Moved gaussianPdf out of core.
1 parent 8a524f6 commit b2995bd

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

examples/js/postprocessing/UnrealBloomPass.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ THREE.UnrealBloomPass.prototype = Object.assign( Object.create( THREE.Pass.proto
248248
uniform vec2 texSize;\
249249
uniform vec2 direction;\
250250
\
251+
float gaussianPdf(in float x, in float sigma) {\
252+
return 0.39894 * exp( -0.5 * x * x/( sigma * sigma))/sigma;\
253+
}\
251254
void main() {\n\
252255
vec2 invSize = 1.0 / texSize;\
253256
float fSigma = float(SIGMA);\

src/renderers/shaders/ShaderChunk/common.glsl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,3 @@ vec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 poi
7272
return lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;
7373

7474
}
75-
76-
float gaussianPdf(in float x, in float sigma) {
77-
78-
return 0.39894 * exp( -0.5 * x * x/( sigma * sigma))/sigma;
79-
80-
}

0 commit comments

Comments
 (0)