diff options
| author | Juan Linietsky | 2016-10-31 08:47:46 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2016-10-31 08:47:46 -0300 |
| commit | 6b2a27bbe5fa112365fc88b9b4678a61293bcb53 (patch) | |
| tree | 9b0f4a0f1a9eff2aae3b5a69758b20c99aba8b05 /servers/visual/visual_server_scene.cpp | |
| parent | acfa606915416a85106817974e5ba2ec3518c203 (diff) | |
| download | godot-6b2a27bbe5fa112365fc88b9b4678a61293bcb53.tar.gz godot-6b2a27bbe5fa112365fc88b9b4678a61293bcb53.tar.zst godot-6b2a27bbe5fa112365fc88b9b4678a61293bcb53.zip | |
shadow atlas allocation (work in progress)
Diffstat (limited to 'servers/visual/visual_server_scene.cpp')
| -rw-r--r-- | servers/visual/visual_server_scene.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/visual/visual_server_scene.cpp b/servers/visual/visual_server_scene.cpp index d958ea4bd..e7900bdcc 100644 --- a/servers/visual/visual_server_scene.cpp +++ b/servers/visual/visual_server_scene.cpp @@ -1107,6 +1107,8 @@ void VisualServerScene::render_camera(RID p_camera, RID p_scenario,Size2 p_viewp render_pass++; uint32_t camera_layer_mask=camera->visible_layers; + VSG::scene_render->set_scene_pass(render_pass); + /* STEP 1 - SETUP CAMERA */ CameraMatrix camera_matrix; @@ -1266,6 +1268,7 @@ void VisualServerScene::render_camera(RID p_camera, RID p_scenario,Size2 p_viewp //do not add this light if no geometry is affected by it.. light_cull_result[light_cull_count]=ins; light_instance_cull_result[light_cull_count]=light->instance; + VSG::scene_render->light_instance_mark_visible(light->instance); //mark it visible for shadow allocation later light_cull_count++; } @@ -1488,6 +1491,7 @@ void VisualServerScene::render_camera(RID p_camera, RID p_scenario,Size2 p_viewp #endif + VSG::scene_render->render_scene(camera->transform, camera_matrix,ortho,(RasterizerScene::InstanceBase**)instance_cull_result,cull_count,light_instance_cull_result,light_cull_count,directional_light_ptr,directional_light_count,environment); } |
