Jump to content

Decals and models


Rick
 Share

Recommended Posts

If you're using a decal to signify a selection of a character and your floor is s model then it seems you have to set it to draw on models. However this then makes it draw on your character as well. Is there a way to exclude an entity from having a decal drawing on it?

Link to comment
Share on other sites

Decals are inherently only set to include/exclude based on object class - brush, model, or terrain. The only suggestion I can think of is trying to remove the 'decalmode' material flag portion of your character's shader file. Suggest saving and applying it as a separate shader name to the character's material file. I don't know if this will work, but if it does then it seems like setting the decal mode per entity would be more preferable than per class.

 

Edit: It does work - just remove the decalmode lines from the shader file:

if (decalmode==1) materialflags += 4;//brush
if (decalmode==2) materialflags += 8;//model
if (decalmode==4) materialflags += 16;//terrain

  • Upvote 5

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

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...