File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/graphics/program-lib/programs Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -463,6 +463,10 @@ var standard = {
463
463
lighting = true ;
464
464
}
465
465
466
+ if ( LayerComposition . clusteredLightingEnabled ) {
467
+ lighting = true ;
468
+ }
469
+
466
470
if ( options . shadingModel === SPECULAR_PHONG ) {
467
471
options . fresnelModel = 0 ;
468
472
options . specularAntialias = false ;
@@ -1406,9 +1410,11 @@ var standard = {
1406
1410
if ( LayerComposition . clusteredLightingEnabled ) {
1407
1411
1408
1412
usesSpot = true ;
1413
+ hasPointLights = true ;
1414
+ usesLinearFalloff = true ;
1409
1415
1410
1416
const clusterTextureFormat = WorldClusters . lightTextureFormat === WorldClusters . FORMAT_FLOAT ? "FLOAT" : "8BIT" ;
1411
- code += `#define CLUSTER_TEXTURE_${ clusterTextureFormat } \n` ;
1417
+ code += `\n #define CLUSTER_TEXTURE_${ clusterTextureFormat } \n` ;
1412
1418
code += chunks . clusteredLightPS ;
1413
1419
}
1414
1420
You can’t perform that action at this time.
0 commit comments