You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Forbid passing multiview sampler to the custom function in shaders
This commit is contained in:
@@ -919,7 +919,7 @@ void RendererCanvasRenderRD::_render_item(RD::DrawListID p_draw_list, RID p_rend
|
||||
} break;
|
||||
case Item::Command::TYPE_ANIMATION_SLICE: {
|
||||
const Item::CommandAnimationSlice *as = static_cast<const Item::CommandAnimationSlice *>(c);
|
||||
double current_time = RendererCompositorRD::singleton->get_total_time();
|
||||
double current_time = RendererCompositorRD::get_singleton()->get_total_time();
|
||||
double local_time = Math::fposmod(current_time - as->offset, as->animation_length);
|
||||
skipping = !(local_time >= as->slice_begin && local_time < as->slice_end);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user