Hi I’m having an issue with the foliage shader that I’m working on. I’m try to create a shader that expresses seasonal die-off of foliage (most plants don’t stay healthy and green during winter). I have the general color blending and what not done, but I’m having an issue with the vertex shader. I believe I need to access either the Object Position or Pivot Point nodes, but either they’re not working or I’m using them incorrectly as they refer to a point far off in the void away from my landscape. I’ve tried using the transform nodes, but the result did not differ.
What I want to do with the vertex shader is to have the plant leafs pull in towards the plant stem (on the X and Y axis) and shrivel up as they die off. I would also like to have the leafs “lay” on (or near) ground level as well as the plant slumps so I “think” the Pivot Point node is what I need to figure out how to use.
Here’s a video that shows what I have so far as well as a pic of the important part of the material shader. The mesh / main material is from an asset pack off the market so I believe I’m not aloud to show the rest of the material (though it shouldn’t be needed).
Video:UE4 2017 05 28 Vertex Shader Problem - YouTube
Pic of material nodes affecting world offset:
ShaderProblem.bmp - Google Drive
Thanks in advance to anyone who can help.