Jump to content

GetShader()


Alienhead
 Share

Recommended Posts

I have a material which is used by the vegetation system, I need to get a handle reference to the Veg-shader in the material.  GetShader() seems to return only the top most assigned shader, is there no way to get a ref handle to a deeper shader in the material ?

Thanks for any advice. 

 

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

Oh wait, I didn't realize the Vegetation system does not require a shader for diffuse/normal. Leaving that blank drops me down to the Veg shader in question.

It took a lot of fiddling around with but I was able to add a uniform variable to the groundplants. veg shader and control it via code for stuff like wind force and direction. 

  • Like 1

I'm only happy when I'm coding, I'm only coding when I'm happy.

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