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

Allow the use of .tres in addition to .material #15

Closed
RomualdDub opened this issue Aug 14, 2022 · 4 comments
Closed

Allow the use of .tres in addition to .material #15

RomualdDub opened this issue Aug 14, 2022 · 4 comments

Comments

@RomualdDub
Copy link

Hello !
It would be cool if materials (.tres) will be loaded instead of image files (.png).
Like Qodot does.
It's useful, for example, with Material Maker. When the "albedo" have the same name of the Material file.
I coded a script which can be attached to the TBLoader node, in your Godot project... Just for testing purpose :
https://pastebin.com/uXdSgYYm

@codecat
Copy link
Owner

codecat commented Aug 14, 2022

If your material is saved with the extension .material (not .tres) it will use the material as per #12. I have been thinking about supporting .tres with this too though, because it is the default in Godot's dialog when creating a new material. 🤔

It's potentially safer to use .material instead of .tres but maybe its type could be checked and a proper error returned if it's not really a material.

@codecat codecat changed the title Importing Materials instead of textures Allow the use of .tres in addition to .material Aug 14, 2022
@RomualdDub
Copy link
Author

My bad, it works fine with ".material" files ! Thank you :)

@codecat
Copy link
Owner

codecat commented Aug 14, 2022

I'm gonna keep this issue open because I do wanna look into supporting the .tres extension as well 😄

@codecat codecat reopened this Aug 14, 2022
@RomualdDub
Copy link
Author

I figured out we can convert .tres to .material using the Save button in Godot :)

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