Jump to content

Recommended Posts

Posted

It is possible to modify LE3 normal map shader to use diffuse texture as a detail texture, i mean with UV scaled down by some factor ?

 

As example the clothes :

53387.jpg

Stop toying and make games

Posted

Yes, something like this (not tested for typos):

 

Add to the top :

 

//uniforms

uniform sampler2D texture4;//details map

 

Then find :

outcolor *= texture(texture0,ex_texcoords0);

 

After add :

outcolor *= texture(texture4,ex_texcoords0*4.0);  //detail texture uv scaled by 4

  • Upvote 2

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

Posted

Shadmar's code expects a dffuse detail texture in the "Texture 4" slot, which is empty in your screenshot. If you want to use the base diffuse for this, change the code to

 

outcolor *= texture(texture0, ex_texcoords0*4.0);

 

EDIT: I probably misunderstood your setup... You want to use the cliff texture as the detail texture, right? And in your screenshot, are you using shadmar's code for that very texture?

  • Upvote 2
Posted

Kind of dark, might wanna use mix instead.

 

outcolor = mix(texture(texture0, ex_texcoords0),texture(texture0, ex_texcoords0*4.0),0.5);

HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB

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.

×
×
  • Create New...