Skip to content

Add support for TileMap pattern rendering#414

Merged
cullumi merged 1 commit intogaea-godot:2.0from
Zehir:pattern_support
Jun 27, 2025
Merged

Add support for TileMap pattern rendering#414
cullumi merged 1 commit intogaea-godot:2.0from
Zehir:pattern_support

Conversation

@Zehir
Copy link
Collaborator

@Zehir Zehir commented Jun 8, 2025

Add support for TileMap pattern rendering

Summary

This PR adds support for a new Type in TileMapGaeaMaterial, enabling tiles to be rendered using TileMap patterns defined in the TileSet.

The Pattern material have 2 options;

  • pattern_index; Pattern index in the pattern list of the [TileSet].
  • pattern_offset; Pattern offset use to shift the tiles from the origin (Top left corner of the pattern).
    The offset is a quick ajustement for the pattern placement because by default the patten will be placed from the top left of the pattern.

Also I placed pattern after everything because he will update multiples cell at once.

I did not update the demo scene but I tried it and works correctly

image
image

Copy link
Collaborator

@cullumi cullumi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks to get the job done, thanks for adding this to 2.0 @Zehir !

@cullumi cullumi merged commit a83f2e8 into gaea-godot:2.0 Jun 27, 2025
3 checks passed
@Zehir Zehir deleted the pattern_support branch October 7, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants