Jump to content

Decals


Dan
 Share

Recommended Posts

I am trying to finalize my FPS shooter additions in the editor and I am having a problem with decals. The decals are being applied correctly, but as each additional decal appears on a model, the material starts get a rainbow-like sheen to it. It appears that it has something to to with the Modulate 2X setting, because when I change it, it goes away. But...I like the effect of the default bullet hole decal so I would like to use it. has anyone experiences this issue before? Is another shader causing this effect? Any help would be appreciated. Below is the script that I'm using and I'm applying the default decal from the editor.

 

decal=CreateDecal(pick.surface,TFormPoint(pick.position,nil,pick.entity),1.0/32,64)

 

if decal~=nil then

decal:SetParent(pick.entity,0)

decal:Paint(material_bulletDecal)

decal:SetColorf(1.0,1.0,1.0,1)

end

Windows XP SP3

Intel Core2 Extreme 3GHz

2GB DDR2 RAM

2x NVIDIA GeForce GTX 280 in SLI

Link to comment
Share on other sites

  • 2 weeks later...

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