@@ -540,7 +540,7 @@ define([
540
540
var framebuffer = passState . framebuffer ;
541
541
var length = commands . length ;
542
542
543
- var shadowsEnabled = scene . frameState . shadowHints . shadowsEnabled ;
543
+ var lightShadowsEnabled = scene . frameState . shadowHints . lightShadowsEnabled ;
544
544
545
545
passState . framebuffer = oit . _adjustTranslucentFBO ;
546
546
oit . _adjustTranslucentCommand . execute ( context , passState ) ;
@@ -553,14 +553,14 @@ define([
553
553
for ( j = 0 ; j < length ; ++ j ) {
554
554
command = commands [ j ] ;
555
555
command = defined ( command . derivedCommands . logDepth ) ? command . derivedCommands . logDepth . command : command ;
556
- derivedCommand = ( shadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . translucentCommand : command . derivedCommands . oit . translucentCommand ;
556
+ derivedCommand = ( lightShadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . translucentCommand : command . derivedCommands . oit . translucentCommand ;
557
557
executeFunction ( derivedCommand , scene , context , passState , debugFramebuffer ) ;
558
558
}
559
559
560
560
if ( defined ( invertClassification ) ) {
561
561
command = invertClassification . unclassifiedCommand ;
562
562
command = defined ( command . derivedCommands . logDepth ) ? command . derivedCommands . logDepth . command : command ;
563
- derivedCommand = ( shadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . translucentCommand : command . derivedCommands . oit . translucentCommand ;
563
+ derivedCommand = ( lightShadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . translucentCommand : command . derivedCommands . oit . translucentCommand ;
564
564
executeFunction ( derivedCommand , scene , context , passState , debugFramebuffer ) ;
565
565
}
566
566
@@ -569,14 +569,14 @@ define([
569
569
for ( j = 0 ; j < length ; ++ j ) {
570
570
command = commands [ j ] ;
571
571
command = defined ( command . derivedCommands . logDepth ) ? command . derivedCommands . logDepth . command : command ;
572
- derivedCommand = ( shadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . alphaCommand : command . derivedCommands . oit . alphaCommand ;
572
+ derivedCommand = ( lightShadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . alphaCommand : command . derivedCommands . oit . alphaCommand ;
573
573
executeFunction ( derivedCommand , scene , context , passState , debugFramebuffer ) ;
574
574
}
575
575
576
576
if ( defined ( invertClassification ) ) {
577
577
command = invertClassification . unclassifiedCommand ;
578
578
command = defined ( command . derivedCommands . logDepth ) ? command . derivedCommands . logDepth . command : command ;
579
- derivedCommand = ( shadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . alphaCommand : command . derivedCommands . oit . alphaCommand ;
579
+ derivedCommand = ( lightShadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . alphaCommand : command . derivedCommands . oit . alphaCommand ;
580
580
executeFunction ( derivedCommand , scene , context , passState , debugFramebuffer ) ;
581
581
}
582
582
@@ -588,7 +588,7 @@ define([
588
588
var framebuffer = passState . framebuffer ;
589
589
var length = commands . length ;
590
590
591
- var shadowsEnabled = scene . frameState . shadowHints . shadowsEnabled ;
591
+ var lightShadowsEnabled = scene . frameState . shadowHints . lightShadowsEnabled ;
592
592
593
593
passState . framebuffer = oit . _adjustTranslucentFBO ;
594
594
oit . _adjustTranslucentCommand . execute ( context , passState ) ;
@@ -602,14 +602,14 @@ define([
602
602
for ( var j = 0 ; j < length ; ++ j ) {
603
603
command = commands [ j ] ;
604
604
command = defined ( command . derivedCommands . logDepth ) ? command . derivedCommands . logDepth . command : command ;
605
- derivedCommand = ( shadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . translucentCommand : command . derivedCommands . oit . translucentCommand ;
605
+ derivedCommand = ( lightShadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . translucentCommand : command . derivedCommands . oit . translucentCommand ;
606
606
executeFunction ( derivedCommand , scene , context , passState , debugFramebuffer ) ;
607
607
}
608
608
609
609
if ( defined ( invertClassification ) ) {
610
610
command = invertClassification . unclassifiedCommand ;
611
611
command = defined ( command . derivedCommands . logDepth ) ? command . derivedCommands . logDepth . command : command ;
612
- derivedCommand = ( shadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . translucentCommand : command . derivedCommands . oit . translucentCommand ;
612
+ derivedCommand = ( lightShadowsEnabled && command . receiveShadows ) ? command . derivedCommands . oit . shadows . translucentCommand : command . derivedCommands . oit . translucentCommand ;
613
613
executeFunction ( derivedCommand , scene , context , passState , debugFramebuffer ) ;
614
614
}
615
615
0 commit comments