Alienhead Posted August 29, 2023 Share Posted August 29, 2023 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. Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Alienhead Posted August 29, 2023 Author Share Posted August 29, 2023 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. 1 Quote I'm only happy when I'm coding, I'm only coding when I'm happy. Link to comment Share on other sites More sharing options...
Recommended Posts
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.