Fix skeleton not being updated in shader, closes #25911
This commit is contained in:
parent
f6fcbcfe9e
commit
be9b938398
1 changed files with 2 additions and 0 deletions
|
@ -1322,6 +1322,8 @@ void RasterizerCanvasGLES3::canvas_render_items(Item *p_item_list, int p_z, cons
|
|||
glActiveTexture(GL_TEXTURE0 + storage->config.max_texture_image_units - 1);
|
||||
glBindTexture(GL_TEXTURE_2D, skeleton->texture);
|
||||
state.using_skeleton = true;
|
||||
state.canvas_shader.set_uniform(CanvasShaderGLES3::SKELETON_TRANSFORM, state.skeleton_transform);
|
||||
state.canvas_shader.set_uniform(CanvasShaderGLES3::SKELETON_TRANSFORM_INVERSE, state.skeleton_transform_inverse);
|
||||
} else {
|
||||
state.using_skeleton = false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue