Jump to content

Recommended Posts

Posted

@Rick, the final lighting pass needs a depth value. So the lighting will not be correct on the blended pixel, since it should really be the blended result of two different light calculations.

 

So are you saying at the point of the pixel shader, there is no lighting in the scene yet? The lighting of the scene is done after the shaders run?

Posted

So am I missing something here or does this not work on CSG? When I apply this to CSG it just disappears. This would for sure need to work for CSG. Any ideas why it doesn't? Maybe it's something I'm doing but could white or shadmar do a quick test on their side with CSG and this shader?

Posted

Why would it only work for skinned animated bone stuff? Doesn't every model have a color to it via SetColor()? That and the noise texture is all that's being used here to determine if the pixel should be discarded or not right? If the CSG has a script attached then it should be a normal model entity right?

Posted

I don't know, but the standard crawler materials also makes csg disappear.

My variant uses the diffuse as discard mask and alpha as strength.

If script or mass, then it's an entity yes.

  • Upvote 1

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