Redshift Leaves using Rayswitch and Sprite nodes

In Redshift and Maya to create a double-sided material shader, for a translucent leaf with the Redshift Rayswitch and Sprite nodes. The Rayswitch node always us to made a double sided shader, and the Sprite node always us to cutout our object correctly.

I used a generic SpeedTree Broadleaf tree for this test.

leaf_maps

Here are the leaf maps I’m going to pipe into my shader (diffuse, normal, spec, rough, translucence).

front_leaf_shader

Here you can see how I’ve piped it into a shadard Redshift shader. Now if I render this shader on a simple plane.

leaf_on_card2

I made another shader for the backside of the leaf.

leaf_backside

Now, I need to create a Ray Switch node. We’ll enable Front/Back.

rayswitch

Drag over with middle mouse your Leaf front shader over the color tab in the Camera field. Then drag over the Leaf back shader onto the Back-face Color tab. You can see how the shaders are linked now.

rayswitch2

Here we can see the Rayswitch shader assigned to two cards (I flipped one to see the backside.

rayswitch3_cards

The Sprite node comes in to correctly cutout our plane. We’ll middle mouse drag our Rayshift shader into the Shader Input. Under Stencil you’ll find your leaf’s alpha.

sprite_node

Now our render looks like this. It has the correct cutout for the leaf.

sprite_node2

Let’s look at our leaf shader applied to a tree.

tree-1

tree-2

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s