|
|
@@ -172,9 +172,9 @@ class VolumetricLightingModel extends LightingModel {
|
|
|
|
|
|
direct( { lightNode, lightColor }, builder ) {
|
|
|
|
|
|
- // Ignore lights with infinite distance
|
|
|
+ // Ignore non-analytical lights and lights with infinite distance
|
|
|
|
|
|
- if ( lightNode.light.distance === undefined ) return;
|
|
|
+ if ( lightNode.isAnalyticLightNode !== true || lightNode.light.distance === undefined ) return;
|
|
|
|
|
|
// TODO: We need a viewportOpaque*() ( output, depth ) to fit with modern rendering approaches
|
|
|
|