Jump to content

combining procedural and bitmap textures


Recommended Posts

hi all. i have a procedural colour shader , and i want to add dirt to specific areas. i thought if i made a dirt later in photoshop and saved as 32bit, it would only use the colour layer and ignore the black background. but vops considers the background.. thus the black covers any colour below.

from the lava video tutorial i could get the displacement info and add color noise to that area for the dirt. but im curious if you can do that with an image layer on top of the procedural layer. or use the image as a mask for the procedural colour noise area.

Link to comment
Share on other sites

Hey Mark,

If you have alpha for the dirt map, make sure you switch the signature of the Texture VOP to be RGBA values then append a "Vector4 to Vector" VOP to the Colour output which will split up the RGB (vector) & A (fval4) values for you.

Next, put down a Colour Mix VOP, connect the procedural colour to the Primary Input, the Vector output of the "Vector4 to Vector" VOP to the Secondary input & the Alpha (fval4) to the Bias.

The above should do what you want.

Cheers!

steven

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.

×
×
  • Create New...