You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Remove unused variables (fourth pass) + dead code
Also fix a potential regression from 3fcb9b1ec1.
This commit is contained in:
@@ -4843,11 +4843,6 @@ void VisualServerRaster::_instance_draw(Instance *p_instance) {
|
||||
switch(p_instance->base_type) {
|
||||
|
||||
case INSTANCE_MESH: {
|
||||
const float *morphs = NULL;
|
||||
if (!p_instance->data.morph_values.empty()) {
|
||||
morphs=&p_instance->data.morph_values[0];
|
||||
}
|
||||
|
||||
rasterizer->add_mesh(p_instance->base_rid, &p_instance->data);
|
||||
} break;
|
||||
case INSTANCE_MULTIMESH: {
|
||||
@@ -5227,8 +5222,6 @@ void VisualServerRaster::_light_instance_update_lispsm_shadow(Instance *p_light,
|
||||
|
||||
Vector3 light_vec = -p_light->data.transform.basis.get_axis(2);
|
||||
Vector3 view_vec = -p_camera->transform.basis.get_axis(2);
|
||||
float viewdot = light_vec.normalized().dot(view_vec.normalized());
|
||||
|
||||
|
||||
float near_dist=1;
|
||||
|
||||
@@ -6466,7 +6459,6 @@ void VisualServerRaster::_render_no_camera(Viewport *p_viewport,Camera *p_camera
|
||||
void VisualServerRaster::_render_camera(Viewport *p_viewport,Camera *p_camera, Scenario *p_scenario) {
|
||||
|
||||
|
||||
uint64_t t = OS::get_singleton()->get_ticks_usec();
|
||||
render_pass++;
|
||||
uint32_t camera_layer_mask=p_camera->visible_layers;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user