Sign in to follow this  
Jdevlock

Tinting Tilemap or Textures

Recommended Posts

I've been working with PIXI.tilemap. I currently have a 64x64 map that I would like to tint or change the color of from white to a shade of another color. However, there does not seem to be a way to do this. Changing the alpha of the parent Container does not have an effect either. Also, filters don't seem to solve this problem.

Share this post


Link to post
Share on other sites

 

Hello, and Welcome to the forums!

There were requests to add tint to tilemap, but i'm lazy and i haven't do it yet. If you are familiar with shader manipulation, you can just add extra uniform in tilemap shader and multiply by it inside fragment shader. If not, just use ColorMatrixFilter on it, hope you can survive slight performance overhead before I add tint to shader.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.