1.5 Update - Easier Individual Texture Maps


Changes:

  • Fixed the `set_z_as_relative_and_update()` function embarrassingly calling none of the functions that it was supposed to.
  • New `custom_texture_maps` array property for PaperPolygon2Ds to streamline the swapping of texture maps without needing to override the global shader parameters.
    • All custom texture maps are applied to the material with the `auto_custom_texture_` prefix for their uniforms, starting from 0. `auto_custom_texture_0`, `auto_custom_texture_1`, and so on.
    • As an example showcase, I made an alternate version of `paper_complex_shader.gdshader` that uses these new custom texture maps called `paper_complex_with_custom_textures_shader.gdshader`. It's designed specifically for individual swapping of texture maps.
  • Flipping and billboard rotations are now bone-based. This is to add some slight compatibility with certain kinds of shaders and `paper_rotate_flip`.
    • To mitigate any possible bone index incompatibility with pre-generated meshes from previous versions (and also to separate from other variables with overly similar naming conventions), `cached_meshes` and `cached_polygon_bone_data` have been renamed to prevent loading outdated mesh data from the previous version. They now start with the `stored_` prefix instead of the `cached_` prefix.
    • PaperBoneAttachment3D's flip functionality yet again edited to fit with this new functionality. If it stops working properly again after this new update, let me know, but I'm pretty sure it should be alright.
  • Made the ShaderParser instance in PaperSkeleton static. Not sure why I didn't make it like this to begin with.

I know that this is a bit of a smaller update. I am planning out something bigger that hopefully should make animating with PaperSkeleton easier.

Files

PaperSkeleton 1.5 (Download this one) 5.3 MB
4 days ago

Get PaperSkeleton

Buy Now$10.00 USD or more

Leave a comment

Log in with itch.io to leave a comment.