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

Tint Brushes - how do they work? #52

Open
JuliuszK opened this issue Aug 24, 2018 · 4 comments
Open

Tint Brushes - how do they work? #52

JuliuszK opened this issue Aug 24, 2018 · 4 comments

Comments

@JuliuszK
Copy link

Hi,
I can't seem to see any UI controls for the Tint Brush. I saw on a Robodash demo video, that there was a color and blend parameter displayed on the Tilemap Pallette UI. I just don't see them.
The brush itself seems to work - it paints white colour on tiles with manually modified colour.

I'm using Unity 2018.2.1f1.
I tried the 2d-techdemos, but it's not working there neither. BTW. upon opening it says the project has been saved with Unity 2017.2, despite readme saying it's been saved with 2018.2....

Also - how do you setup the TintBrush Smooth? There's no example scene in the 2d-techdemos. No documentation anywhere. I have no idea what to do with the shader file - I tried applying it to a Tilemap Renderer, but it's not being recognized as a valid shader.

Any help will be greatly appreciated, as I've already spent some time trying to figure out stuff with no luck.

Thanks,
J.

@cconlan
Copy link

cconlan commented Aug 27, 2018

@ChuanXin-Unity seconding a request for documentation and an example scene for TintBrushSmooth. We've wanted it ever since seeing it in action in the Robodash demo but have always resorted to using other workarounds.

Please make it happen!

@ChuanXin-Unity
Copy link
Collaborator

Hi, I have updated 2d-techdemos with an example scene for TintBrushSmooth on the master branch.

There is some setup to be able to use this brush:

  • Create a new material using TintedTilemap.shader (Custom/TintedTilemap)
  • Assign this material to the TilemapRenderer
  • Add the TintTextureGenerator component to the Grid of the Tilemap.
  • Now you can start tinting the Tiles in the Tilemap.

The TintTextureGenerator component generates a Tint texture which is used by the TintedTilemap shader to blend the Tint and the Color of the Sprites used. If you have your own shader/s for the Tilemap, you can try merging the code in from the TintedTilemap shader to your shader/s.

@cconlan
Copy link

cconlan commented Aug 31, 2018

Fantastic, thanks so much!

@JuliuszK
Copy link
Author

JuliuszK commented Sep 1, 2018

Thanks very much for this extra demo and info!

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

3 participants