Quantcast
Channel: Questions in topic: "tree"
Viewing all articles
Browse latest Browse all 513

Tree Creator Shader will not fade

$
0
0
How can I have a tree made with Tree Creator (with Tree Creator Shaders) slowly fade over the course of a scene? I am not sure how to change the rendering setting of the tree so that changes in its alpha value will make it transparent. I am calling the following code in update: GameObject tree= GameObject.FindGameObjectWithTag("largeTree"); Color color = tree.GetComponent().material.color; color.a -= 0.1f; tree.GetComponent().material.SetColor ("_Color", color); My tree currently has "Nature/Tree Creator Bark" and "Nature/Tree Creator Leaves" Shaders. I tried making the Tree Shader Standard and changing its render setting to Transparent, but this resulted in errors and still would not allow the tree's transparency to be changed.

Viewing all articles
Browse latest Browse all 513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>