@@ -1904,7 +1904,7 @@ pl_refr_reload_scene_shaders(uint32_t uSceneHandle)
19041904
19051905 pl_refr_create_global_shaders ();
19061906
1907- int iSceneWideRenderingFlags = 0 ;
1907+ int iSceneWideRenderingFlags = PL_RENDERING_FLAG_SHADOWS ;
19081908 if (gptData -> bPunctualLighting )
19091909 iSceneWideRenderingFlags |= PL_RENDERING_FLAG_USE_PUNCTUAL ;
19101910 if (gptData -> bImageBasedLighting )
@@ -1998,7 +1998,7 @@ pl_refr_reload_scene_shaders(uint32_t uSceneHandle)
19981998 tLightingShaderDesc .atConstants [i ].tType = PL_DATA_TYPE_INT ;
19991999 }
20002000 ptScene -> tLightingShader = gptGfx -> create_shader (gptData -> ptDevice , & tLightingShaderDesc );
2001- aiLightingConstantData [0 ] = gptData -> bPunctualLighting ? PL_RENDERING_FLAG_USE_PUNCTUAL : 0 ;
2001+ aiLightingConstantData [0 ] = gptData -> bPunctualLighting ? ( PL_RENDERING_FLAG_USE_PUNCTUAL | PL_RENDERING_FLAG_SHADOWS ) : 0 ;
20022002 ptScene -> tEnvLightingShader = gptGfx -> create_shader (gptData -> ptDevice , & tLightingShaderDesc );
20032003 }
20042004
@@ -2201,7 +2201,7 @@ pl_refr_finalize_scene(uint32_t uSceneHandle)
22012201 gptGfx -> update_bind_group (gptData -> ptDevice , ptScene -> tSkinBindGroup0 , & tBGData0 );
22022202 }
22032203
2204- int iSceneWideRenderingFlags = 0 ;
2204+ int iSceneWideRenderingFlags = PL_RENDERING_FLAG_SHADOWS ;
22052205 if (gptData -> bPunctualLighting )
22062206 iSceneWideRenderingFlags |= PL_RENDERING_FLAG_USE_PUNCTUAL ;
22072207 if (gptData -> bImageBasedLighting )
@@ -2293,7 +2293,7 @@ pl_refr_finalize_scene(uint32_t uSceneHandle)
22932293 tLightingShaderDesc .atConstants [i ].tType = PL_DATA_TYPE_INT ;
22942294 }
22952295 ptScene -> tLightingShader = gptGfx -> create_shader (gptData -> ptDevice , & tLightingShaderDesc );
2296- aiLightingConstantData [0 ] = gptData -> bPunctualLighting ? PL_RENDERING_FLAG_USE_PUNCTUAL : 0 ;
2296+ aiLightingConstantData [0 ] = gptData -> bPunctualLighting ? ( PL_RENDERING_FLAG_USE_PUNCTUAL | PL_RENDERING_FLAG_SHADOWS ) : 0 ;
22972297 ptScene -> tEnvLightingShader = gptGfx -> create_shader (gptData -> ptDevice , & tLightingShaderDesc );
22982298 }
22992299
0 commit comments