Failing to port shader from shader forge to ASE: grab passes
Posted: Sun Aug 05, 2018 2:10 pm
Hi guys,
I'm developing an assetpackage to render planets and other cosmic stuff http://u3d.as/b0N while it was fairly easy to port written shader code to shader forge it seems impossible to figure out to match AES's shader network with SF. At least I'm failing doing so.
Basically I mimiced the nodes of SF in ASE but unfortunately ASE's rendering is completely different (unsusable) and nodes partially don't behave as expected. (see image with the blackholes: left example ASE, right SF)
The nodes I have problems with are: grab screen position, grab scene color (grab passes), fresnel. And also cull mode front, transparency. I already searched the forum but not succeeding to find a solution. Actually I think it's mixture of misunderstanding of the nodes and buggy nodes.
1. For better understanding I also rebuilt the node network on your wiki page http://wiki.amplify.pt/index.php?title= ... reen_Color
Although my network looks a bit different due to your changes on the unpack scale normal node I suspect it should render the same. Yet the result is different compared to your provided sample image. As you can see the outline on your image is hackly blending into the background and in my network (see image) this doesn't happen although using the same normal map. Could you please recreate the same node network and confirm?
2. cull mode front in combination with using a fresnel on the transparency channel doesn't work.
This happens with Unity 2017.1.0f3 btw but also with other versions of Unity.
I want to achieve the same blackhole effect as with SF and hope you can help to solve my issues and improve my understanding of ASE.
Regards,
Alex
I'm developing an assetpackage to render planets and other cosmic stuff http://u3d.as/b0N while it was fairly easy to port written shader code to shader forge it seems impossible to figure out to match AES's shader network with SF. At least I'm failing doing so.
Basically I mimiced the nodes of SF in ASE but unfortunately ASE's rendering is completely different (unsusable) and nodes partially don't behave as expected. (see image with the blackholes: left example ASE, right SF)
The nodes I have problems with are: grab screen position, grab scene color (grab passes), fresnel. And also cull mode front, transparency. I already searched the forum but not succeeding to find a solution. Actually I think it's mixture of misunderstanding of the nodes and buggy nodes.
1. For better understanding I also rebuilt the node network on your wiki page http://wiki.amplify.pt/index.php?title= ... reen_Color
Although my network looks a bit different due to your changes on the unpack scale normal node I suspect it should render the same. Yet the result is different compared to your provided sample image. As you can see the outline on your image is hackly blending into the background and in my network (see image) this doesn't happen although using the same normal map. Could you please recreate the same node network and confirm?
2. cull mode front in combination with using a fresnel on the transparency channel doesn't work.
This happens with Unity 2017.1.0f3 btw but also with other versions of Unity.
I want to achieve the same blackhole effect as with SF and hope you can help to solve my issues and improve my understanding of ASE.
Regards,
Alex