Multi Texture using a Blend Mask that is paintable in engine
Are there any plug-ins/shaders that support multi texture blending using a blend mask that is paintable in engine?
I'm currently rolling with a multi texture set up that uses a blend mask put together in the Shader Forge. It gets the job done, but being able to paint the blend mask in real time (in Unity) would be extremely helpful.
Thanks!
I'm currently rolling with a multi texture set up that uses a blend mask put together in the Shader Forge. It gets the job done, but being able to paint the blend mask in real time (in Unity) would be extremely helpful.
Thanks!
Replies
-
If you are blending based on vertex colour or vertex alpha, then you need a plugin to paint vertex colours in Unity. There's a bunch of them on the asset store. If you are using an image-based mask you could try the TexturePaint plugin on the asset store.
-
I did a bunch of this a year or so. Same recommendation as Ryan.
Plus, if you're using a Terrain, that offers up to 4 per-pixel blend masks. Shaders have to be edited to specifically support Unity Terrain though.
My setup is outlined here FWIW
http://polycount.com/discussion/160691/sketchbook-eric-chadwick
-
RyanB said:If you are blending based on vertex colour or vertex alpha, then you need a plugin to paint vertex colours in Unity. There's a bunch of them on the asset store. If you are using an image-based mask you could try the TexturePaint plugin on the asset store.
Ideally I would want a plugin that could write to a preexisting texture AND display the final output textures (not just the painted mask) in real time. Not sure if you have any input/referral in that regard.Eric Chadwick said:I did a bunch of this a year or so. Same recommendation as Ryan.
Plus, if you're using a Terrain, that offers up to 4 per-pixel blend masks. Shaders have to be edited to specifically support Unity Terrain though.
My setup is outlined here FWIW
http://polycount.com/discussion/160691/sketchbook-eric-chadwick
Thank you both for the input! -
overhira said:I'm running with an image-based mask setup currently since I'm finding that vertex density is limiting my painting ability. Is this the plugin you're referring to as the TexturePaint plugin?
Ideally I would want a plugin that could write to a preexisting texture AND display the final output textures (not just the painted mask) in real time. Not sure if you have any input/referral in that regard.
https://www.assetstore.unity3d.com/en/#!/content/33506
You need a shader that takes an image to blend between the two textures. As long as the shader is applied to the object and whatever paint program you find allows you to write to that image, it will update in realtime. I usually write these myself.
I prefer to do any painting of masks or vertex colours outside of Unity. Max, Maya, Blender, etc. all have built-in paint tools. So I would set up a shader/material in whatever program, paint the mask texture, then export everything to Unity.