Jump to content

Overlay (Decals)


IgorBgz90
 Share

Recommended Posts

Hi!

Trying to do texture mapping on the texture failed.

In a fragment shader, for rendering I use only Normal Map with alpha channel and Specular map.

 

Everything works fine, if the model is on the zero coordinate Z mellow.png +- 3.0

Help!

 

Shader: shader.zip

Texture 1: Normal map with Alpha

Texture 2: Specular map

 

Screenshot's:

Z: 0.0

post-13485-0-93167600-1423955219_thumb.jpg

 

Z: -4.0 +4.0

post-13485-0-99298000-1423955319_thumb.jpg

 

 

Maybe there is an alternative to achieve this effect?

I hope you understand me smile.png

Link to comment
Share on other sites

Wait for real decals systems , they should come this year in LE3, you have time to finish some games level meanwhile.

 

It's good!

Decal system works a little differently, uses the diffuse texture with alpha channel. Overlay uses light map for the creation of the volume. It looks very realistic rolleyes.gif.

silent_hills_pt_screen_20140821_01.jpg

  • Upvote 2
Link to comment
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.

 Share

×
×
  • Create New...