Culling mode access

Node-based Shader Editor
Post Reply
kurzemnieks
Posts: 8
Joined: Sat Dec 23, 2017 3:08 pm

Culling mode access

Post by kurzemnieks »

Hi. Would it be possible to somehow make culling mode available to node tree - so we could create Static Switch to enable/disable two sided rendering for shaders? Maybe there is another way? Currently I need to create two versions of shader just to have two sided rendering available.

Thanks
HellGate
Posts: 7
Joined: Wed Nov 29, 2017 3:53 pm

Re: Culling mode access

Post by HellGate »

culling mode cant be switched in between pixels. thats the whole point of it. you can however use no culling and the face node to tell what side you are rendering and then just discard it based on your logic
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Culling mode access

Post by Amplify_Borba »

Hello kurzemnieks, as HellGate kindly pointed out, we recommend that you look into both the Face and Switch by Face nodes, and also our TwoSidedWithFace shader sample at AmplifyShaderEditor/Examples/Official/TwoSidedWithFace.

Please let us know if the above nodes and sample are helpful, or if you have any further questions, thanks!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply