mtl_terraintex detail_size

Posted By: Reconnoiter

mtl_terraintex detail_size - 10/20/14 11:59

Hi,

Would it be possible to change the detail_size per skin of the terrain when using mtl_terraintex? Cause than I could use 1 large skin for the whole terrain and the other skins for different detail maps.

So it would be a cross between the default way terrain work (1 large texture + a detail texture) and the mtl_terraintex way (only detail textures) = 1 large texture with several detail textures.

Is this possible?

Thank you for your time.
Posted By: jcl

Re: mtl_terraintex detail_size - 10/21/14 07:14

Sure, use a shader for this, and multiply the skin texture coordinate with the desired factor.
Posted By: Reconnoiter

Re: mtl_terraintex detail_size - 10/21/14 11:55

Thank you for your comment.

Could you give me a name/hint of what kind of shader I should look into? Something like this: http://wiki.unity3d.com/index.php/3SideProjDiffuse1.1 by Nils/Slin?
Posted By: Superku

Re: mtl_terraintex detail_size - 10/21/14 12:11

Read the shader workshops: http://www.conitec.net/shaders/
After you are done with them (!) just take the diffuse shader as a basis and transform it into a multitex terrain shader yourself. Use "lerp" to blend between different textures (multiple tex2D calls from different texture samplers) based on some kind of blendmap information but multiply the textures/ colors with detail map colors first (where you scale InTex with some variables/ vecSkills, like Mr. Lotter said).
Posted By: Reconnoiter

Re: mtl_terraintex detail_size - 10/21/14 15:10

Okay great, thanks!
© 2024 lite-C Forums