Transparent Cutout Shader Or Way To Blend/Combine 2 PNG's
Posted: Wed May 02, 2018 7:09 am
Example:
( I need the transparent layer of the PNG to be transparent on albedo).
Hello,
I just purchased amp shader editor and I'm really liking it. Managed to create a nice atmosphere for my Planet in under few hours being just a beginner (better than a 15$ asset on asset store (next gen planets). (not a beginner at unity and using shaders however).
I am super psyced to post my first shaders, soon.
Right now I need some help, For my planet surface shader I am wanting to seperate the ocean and land which i have done in photoshop and put into 2 Transparent PNG's.
The reason for this is I want to apply separate shaders to the land and to the ocean as I intend on tessellating the land and putting a specular shimmer on the ocean.
My plan here is to have 2 sphere mesh one containing the ocean and one containing the land sitting int he same position both being transparent cutouts.
The problem is i need an example of a basic transparent cutout shader with this system as im not sure how to do this. I have trying add'ing the two images, blending them.. So that is why im going with 2 seperate mesh's and a seperate shader for each ocean/land.
The problem now is, how can i get the transparency to work on a PNG? I've been fiddling with it for a while and can't seem to get transparency to work on PNG transparent layers.
Thanks,
Johnny
Here is my project (so far) A unity space Sim I am working on.
https://www.youtube.com/channel/UCXsD308-pyrtr1yzwpwmY7w
( I need the transparent layer of the PNG to be transparent on albedo).
Hello,
I just purchased amp shader editor and I'm really liking it. Managed to create a nice atmosphere for my Planet in under few hours being just a beginner (better than a 15$ asset on asset store (next gen planets). (not a beginner at unity and using shaders however).
I am super psyced to post my first shaders, soon.
Right now I need some help, For my planet surface shader I am wanting to seperate the ocean and land which i have done in photoshop and put into 2 Transparent PNG's.
The reason for this is I want to apply separate shaders to the land and to the ocean as I intend on tessellating the land and putting a specular shimmer on the ocean.
My plan here is to have 2 sphere mesh one containing the ocean and one containing the land sitting int he same position both being transparent cutouts.
The problem is i need an example of a basic transparent cutout shader with this system as im not sure how to do this. I have trying add'ing the two images, blending them.. So that is why im going with 2 seperate mesh's and a seperate shader for each ocean/land.
The problem now is, how can i get the transparency to work on a PNG? I've been fiddling with it for a while and can't seem to get transparency to work on PNG transparent layers.
Thanks,
Johnny
Here is my project (so far) A unity space Sim I am working on.
https://www.youtube.com/channel/UCXsD308-pyrtr1yzwpwmY7w