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

Request Guide for creating shader/material compatible with this tool #70

Closed
lamlnt opened this issue May 30, 2024 · 1 comment
Closed

Comments

@lamlnt
Copy link

lamlnt commented May 30, 2024

Hi, I want to create a custom shader/material for this tool, more specifically one that will also take in a normal Map and a Mask Map to interact with lighting.

  1. Where can I change the Material/Shader (aside from manually assigning to the prefab)?
  2. Is there anything I should notice when writing a custom shader for this tool? (maybe could you provide an example or a template?)
@sr4dev
Copy link
Owner

sr4dev commented Jun 5, 2024

  1. To change the Material/Shader, you need to either change the Material in the Mesh Renderer of the Mesh Prefab or click on the Material to change the Shader in use. If you want to change the default shader, you can also change the default shader in ProjectSettings -> SpriteAssist.
  2. Using custom shaders is not a problem. However, there is a fundamental issue. In games that use lighting and shadows, problems may arise. I am using this tool to create my game. However, my game does not use lighting. Therefore, it has not been sufficiently tested for lighting. There is an issue (Mesh normals aren't correct #38) where the normals of the meshes generated through SpriteAssist are incorrect, and this has not been fixed yet.

@sr4dev sr4dev closed this as completed Aug 29, 2024
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