Skip to content

Commit

Permalink
Move sprite.material to match the builtins path
Browse files Browse the repository at this point in the history
  • Loading branch information
Insality committed May 18, 2024
1 parent 93a26bd commit 98b3411
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ Initial resease!
- Update documentation.
- Update GO and GUI adapters:
- GO now supports `color` and `slice9` properties.
- The default sprite color property is `tint`. To use panthera color property, use `/panthera/materials/sprite/sprite.material` or any other with `color` property.
- The default sprite color property is `tint`. To use panthera color property, use `/panthera/materials/sprite.material` or any other with `color` property.
- GUI: fix slice9 property.
- GUI: fix for pie vertices and piebounds properties.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ end

When integrating Panthera 2.0 animations with Defold game objects (GOs), it's essential to know which properties you can animate:

By default, sprite components uses the `tint` property and label components use the `color` property. Panthera try to use `color` property. To enable `color` property you should set the material of sprite component to `/panthera/materials/sprite/sprite.material` or use any other material with `color` attribute.
By default, sprite components uses the `tint` property and label components use the `color` property. Panthera try to use `color` property. To enable `color` property you should set the material of sprite component to `/panthera/materials/sprite.material` or use any other material with `color` attribute.

- **Position**: Move objects.
- **Rotation**: Rotate objects.
Expand Down
4 changes: 2 additions & 2 deletions example/example_go/example_go.collection
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ embedded_instances {
" id: \"sprite\"\n"
" type: \"sprite\"\n"
" data: \"default_animation: \\\"panthera\\\"\\n"
"material: \\\"/panthera/materials/sprite/sprite.material\\\"\\n"
"material: \\\"/panthera/materials/sprite.material\\\"\\n"
"blend_mode: BLEND_MODE_ALPHA\\n"
"textures {\\n"
" sampler: \\\"texture_sampler\\\"\\n"
Expand Down Expand Up @@ -156,7 +156,7 @@ embedded_instances {
" id: \"sprite\"\n"
" type: \"sprite\"\n"
" data: \"default_animation: \\\"ui_circle\\\"\\n"
"material: \\\"/panthera/materials/sprite/sprite.material\\\"\\n"
"material: \\\"/panthera/materials/sprite.material\\\"\\n"
"blend_mode: BLEND_MODE_ALPHA\\n"
"textures {\\n"
" sampler: \\\"texture_sampler\\\"\\n"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "sprite"
tags: "tile"
vertex_program: "/panthera/materials/sprite/sprite.vp"
fragment_program: "/panthera/materials/sprite/sprite.fp"
vertex_program: "/panthera/materials/sprite.vp"
fragment_program: "/panthera/materials/sprite.fp"
vertex_space: VERTEX_SPACE_WORLD
vertex_constants {
name: "view_proj"
Expand Down
File renamed without changes.

0 comments on commit 98b3411

Please sign in to comment.