@@ -207,7 +207,7 @@ pl_app_load(plApiRegistryI* ptApiRegistry, plEditorData* ptEditorData)
207207
208208 ptEditorData -> tPointLight = gptEcs -> create_point_light (ptMainComponentLibrary , "point light" , (plVec3 ){0.0f , 2.0f , 2.0f }, & ptLight );
209209 ptLight -> uShadowResolution = 1024 ;
210- // ptLight->tFlags |= PL_LIGHT_FLAG_CAST_SHADOW | PL_LIGHT_FLAG_VISUALIZER ;
210+ ptLight -> tFlags |= PL_LIGHT_FLAG_CAST_SHADOW ;
211211 plTransformComponent * ptPLightTransform = gptEcs -> add_component (ptMainComponentLibrary , PL_COMPONENT_TYPE_TRANSFORM , ptEditorData -> tPointLight );
212212 ptPLightTransform -> tTranslation = (plVec3 ){0.0f , 1.497f , 2.0f };
213213
@@ -216,21 +216,18 @@ pl_app_load(plApiRegistryI* ptApiRegistry, plEditorData* ptEditorData)
216216 ptLight -> fRange = 5.0f ;
217217 ptLight -> fRadius = 0.025f ;
218218 ptLight -> fIntensity = 20.0f ;
219- // ptLight->tFlags |= PL_LIGHT_FLAG_CAST_SHADOW | PL_LIGHT_FLAG_VISUALIZER;
219+ ptLight -> tFlags |= PL_LIGHT_FLAG_CAST_SHADOW | PL_LIGHT_FLAG_VISUALIZER ;
220220 plTransformComponent * ptSLightTransform = gptEcs -> add_component (ptMainComponentLibrary , PL_COMPONENT_TYPE_TRANSFORM , ptEditorData -> tSpotLight );
221221 ptSLightTransform -> tTranslation = (plVec3 ){0.0f , 4.0f , 0.0f };
222222
223223 plEnvironmentProbeComponent * ptProbe = NULL ;
224- plEntity tProbe = gptEcs -> create_environment_probe (ptMainComponentLibrary , "Main Probe" , (plVec3 ){0.0f , 2.0f , 0 .0f }, & ptProbe );
225- ptProbe -> fRange = 10 .0f ;
224+ gptEcs -> create_environment_probe (ptMainComponentLibrary , "Main Probe" , (plVec3 ){0.0f , 2.0f , 2 .0f }, & ptProbe );
225+ ptProbe -> fRange = 30 .0f ;
226226 ptProbe -> uResolution = 128 ;
227- plTransformComponent * ptProbeTransform = gptEcs -> add_component (ptMainComponentLibrary , PL_COMPONENT_TYPE_TRANSFORM , tProbe );
228- ptProbeTransform -> tTranslation = (plVec3 ){0.0f , 2.0f , 0.0f };
229-
227+ ptProbe -> tFlags = PL_ENVIRONMENT_PROBE_FLAGS_REALTIME ;
230228
231229 // load models
232230
233-
234231 // plTransformComponent* ptTargetTransform = NULL;
235232 // ptEditorData->tTrackPoint = gptEcs->create_transform(ptMainComponentLibrary, "track 0", &ptTargetTransform);
236233 // ptTargetTransform->tTranslation = (plVec3){0.1f, 0.017f};
0 commit comments