Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to set the TileSet Texture NormalMap Texture and Specular Texture #34

Closed
Lertsenem opened this issue Dec 7, 2023 · 5 comments

Comments

@Lertsenem
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I'm using NormalMaps in my level in order to simply achieve some beautiful lighting effects. Unfortunately, I found no way to do that using YATI.

Describe the solution you'd like
It could maybe be added as a file CustomProperty of the tileset in Tiled? Or independently for each tile when using separate tiles pictures?

Describe alternatives you've considered
For now I need to manually modify the node generated by YATI, changing the TileSet Texture (CanvasTexture) and manually adding the TileMap Texture parameter. Unfortunately I need to redo this each time I make a change in my Tiled level.

Additional context
Thanks for making YATI, that's a brilliant plugin that I now can't live without. :]

@Kiamo2
Copy link
Owner

Kiamo2 commented Dec 7, 2023

The list of Godot specific properties is already quite long so I refrained from materials altogether.
The proposed solution for that case is to save the Godot material settings to a material file (usually a .tres file) and add a Tiled custom property 'material' of type file and set its value to that material file.
The importer loads the material file just as if you would load it manually.
Would that be a viable option for you?

@Kiamo2
Copy link
Owner

Kiamo2 commented Dec 12, 2023

No further feedback.
-> Issue is considered resolved.

@Kiamo2 Kiamo2 closed this as completed Dec 12, 2023
@Lertsenem
Copy link
Contributor Author

Sorry, I missed your first answer!

Thanks, I did not realize this was the way to go, and it indeed works for me! Maybe it could be worth adding some text about it in the ref doc? Anyway, thanks a lot for your help!

@Kiamo2
Copy link
Owner

Kiamo2 commented Dec 13, 2023

Following your proposal I've added some text to the ref doc.

@Lertsenem
Copy link
Contributor Author

Lertsenem commented Dec 13, 2023 via email

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

No branches or pull requests

2 participants