Jump to content
Sign in to follow this  

normal thief(stealing?)

Recommended Posts

I've read the two threads, but not sure they are the right fit.  I am wanting to make soft trees but not with unity tree creator,  instead I would like to make trees like this?  https://simonschreibt.de/gat/airborn-trees/


basically you have a  mass shape thats the tree's body and then the leaves are children that have the same normals as the main tree shape. But the article states this is done in 3ds max or something.   So can you do this in Probuilder?  I have my tree trunk and I'm now wanting to add the leaves using this style. I've built a untested shader (my first)... as I 've modeled the probuilder mesh that will hold the leaves.

Shader "Test Shaders/Normal UV Thief" {
Properties {
_ParentTexBump("Bumpmap",2D) ="bump"{}
[Tooltip("Thief Texture is actually the main text to be rerendered")]
_ThiefTex("Texture",2D) = "white" {}
#pragma surface surf StandardSpecular
Sampler2D uv_MainTexBump;
Sampler2D uv_ThiefTex;
struct Input {
float2 uv_MainTexBump;
float2 uv_ThiefTex;
#new surface shader for this object
void surf (Input IN, inout SurfaceOutput o) {
o.Albedo = tex2D (_ThiefTex, IN.uv_ThiefTex).rgba;
o.Normal = UnpackNormal (tex2D (_BumpMap, IN.uv_BumpMap));
o.Alpha = 1;
Fallback VertexLit;


Share this post

Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now
Sign in to follow this