|
Hi everyone. I'm new in Unity and I trying to develop my first mini video game for Android. I imported the BananaPlant prefab and its texture and its shader (its name is Nature/Tree Soft Occlusion Leaves) provide from the Island Demo projet and I use them in my game. Now, I try to make a shader to oscillate the BananaPlant in my game. But unfortunly, my shader doesn't work. I know I have to use the initial shader to keep the texture and its renders and make a vertex program using the sine finction to oscillate the plants. But I have no idea the correct way to do this. currently, my shader looks like that : } I using a fragment program because apparently I must a both of vertex and fragment program for a OpenGL ES 2.0 target but I really don't know what I can put in the body of this program. Please Have anybody got a solution for my trouble ? Thanks for your help.
(comments are locked)
|
should probably be Also it doesn't work for me unless I comment UsePass away. Maybe it has something to do with the properties that Tree Soft Occlusion Leaves uses aren't available and that you didn't specify a pass in the shader that you want to use. You can get the shader sources from here and mod them to suit your needs if you want to. Hi! Thanks for your answer. I pick up the source code shader via the link you gave and now, I try to add the vertex program to animate the plants. I will tell you if I success to do this.
May 16 '12 at 08:38 AM
KyuubiLovin
(comments are locked)
|
