|
@@ -15,7 +15,7 @@ THREE.LuminosityHighPassShader = {
|
|
"luminosityThreshold": { type: "f", value: 1.0 },
|
|
"luminosityThreshold": { type: "f", value: 1.0 },
|
|
"smoothWidth": { type: "f", value: 1.0 },
|
|
"smoothWidth": { type: "f", value: 1.0 },
|
|
"defaultColor": { type: "c", value: new THREE.Color( 0x000000 ) },
|
|
"defaultColor": { type: "c", value: new THREE.Color( 0x000000 ) },
|
|
- "defaultOpacity": { type: "f", value: 0.0 },
|
|
|
|
|
|
+ "defaultOpacity": { type: "f", value: 0.0 }
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
|
@@ -56,7 +56,7 @@ THREE.LuminosityHighPassShader = {
|
|
"float alpha = smoothstep( luminosityThreshold, luminosityThreshold + smoothWidth, v );",
|
|
"float alpha = smoothstep( luminosityThreshold, luminosityThreshold + smoothWidth, v );",
|
|
|
|
|
|
"gl_FragColor = mix( outputColor, texel, alpha );",
|
|
"gl_FragColor = mix( outputColor, texel, alpha );",
|
|
-
|
|
|
|
|
|
+
|
|
"}"
|
|
"}"
|
|
|
|
|
|
].join("\n")
|
|
].join("\n")
|