Constructs a new god rays effect.
Optionalcamera: CameraThe main camera.
OptionallightSource: Mesh<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap> | Points<BufferGeometry<NormalBufferAttributes>, Material | Material[], Object3DEventMap>The light source. Must not write depth and has to be flagged as transparent.
Optionaloptions: { The options.
OptionalblendThe blend function of this effect.
Optionalblur?: booleanWhether the god rays should be blurred to reduce artifacts.
OptionalclampAn upper bound for the saturation of the overall effect.
Optionaldecay?: numberAn illumination decay factor.
Optionaldensity?: numberThe density of the light rays.
Optionalexposure?: numberA constant attenuation coefficient.
Optionalheight?: numberDeprecated. Use resolutionY instead.
OptionalkernelThe blur kernel size. Has no effect if blur is disabled.
OptionalresolutionThe resolution scale.
OptionalresolutionX?: numberThe horizontal resolution.
OptionalresolutionY?: numberThe vertical resolution.
Optionalsamples?: numberThe number of samples per pixel.
Optionalweight?: numberA light ray weight factor.
Optionalwidth?: numberDeprecated. Use resolutionX instead.
ReadonlyblendThe blend mode of this effect.
A blur pass that reduces aliasing artifacts and makes the light softer.
This pass can be disabled to improve performance.
ReadonlydefinesPreprocessor macro definitions.
Call Effect.setChanged after changing macro definitions.
ReadonlyextensionsWebGL extensions that are required by this effect.
Call Effect.setChanged after adding or removing extensions.
The name of this effect.
ProtectedrendererThe renderer.
ReadonlyuniformsShader uniforms.
Call Effect.setChanged after adding or removing uniforms.
Indicates whether the god rays should be blurred to reduce artifacts.
The depth mask material.
Indicates whether dithering is enabled.
The internal god rays material.
The current height of the internal render targets.
ExperimentalThe input color space.
Protected ExperimentalThe blur kernel size.
Sets the light source.
Sets the main camera.
Sets the main scene.
ExperimentalThe output color space.
Should only be changed if this effect converts the input colors to a different color space.
Protected ExperimentalThe resolution of this effect.
The number of samples per pixel.
A higher sample count improves quality at the cost of performance.
A texture that contains the intermediate result of this effect.
The current width of the internal render targets.
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Fire an event type.
Performs a shallow search for properties that define a dispose method and deletes them.
The EffectComposer calls this method when it is being destroyed.
Returns the effect attributes.
The attributes.
Returns the blur pass that reduces aliasing artifacts and makes the light softer.
The blur pass.
Returns the WebGL extensions that are required by this effect.
The extensions.
Returns the god rays material.
The material.
Returns the resolution of this effect.
The material.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
ProtectedsetProtectedSets the effect attributes.
Effects that have the same attributes will be executed in the order in which they were registered. Some attributes imply a higher priority.
The attributes.
ProtectedsetProtectedInforms the associated EffectPass that this effect requires a shader recompilation.
Should be called after changing macros or extensions and after adding/removing uniforms.
ProtectedsetProtectedsetUpdates this effect.
The renderer.
A frame buffer that contains the result of the previous pass.
OptionaldeltaTime: numberThe time between the last frame and the current one in seconds.
A god rays effect.