gamecreator Posted March 29, 2017 Share Posted March 29, 2017 I am interested in blending two textures on a triangle in my modeling application (a lot like how the terrain editor does it) and then importing that into Leadwerks. Is this possible and if so, how is this best done? I assume this has something to do with using two or three texture slots and/or a shader but I'm not sure if it's possible. Quote Link to comment Share on other sites More sharing options...
macklebee Posted March 29, 2017 Share Posted March 29, 2017 Well it depends on how you are planning to do the blending inside your modeling app - by a fixed amount or via a mask/map. Based on the pics you posted, I would assume you will have some sort of mask/map that determines what texture is visible? If so, its a fairly straight forward shader where you draw the two textures based on the color of the mask texture. EDIT -- if doing a mask map, here is a quick version of a model shader that blends two diffuse textures based on the mask map's alpha: blend.zip 4 Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
gamecreator Posted March 30, 2017 Author Share Posted March 30, 2017 I think this may be exactly what I'm looking for! I'm going to try it tonight. Thank you macklebee! I haven't done it in a while but the link I posted in the original post shows Max's blend material (half way down under Interface section), which I intend to use to visualize this in the software before exporting. Quote Link to comment Share on other sites More sharing options...
SpiderPig Posted April 1, 2017 Share Posted April 1, 2017 This is also exactly what I'm after. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.