I am currently working on transferring the god-rays demo code into an effect pass in order to seamlessly integrate it with other post-processing effects within the effect composer. However, I am facing an issue where the render function of the effect is not being called...
The pass is being created in the following format:
THREE.GodRaysPass = function ( width, height, camera, renderer, scene) {
//setup code};
THREE.GodRaysPass.prototype = {
render: function ( renderer, writeBuffer, readBuffer, delta, maskActive ) {
//render code
}};
Upon initialization:
this.composer = new THREE.EffectComposer( this.renderer );
var effectGodRays = new THREE.GodRaysPass(this.width, this.height, this.camera, this.renderer, this.scene);
this.composer.addPass( effectGodRays );