Culling mode access

Node-based Shader Editor

Culling mode access

Postby kurzemnieks » Wed Jan 10, 2018 4:14 pm

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
kurzemnieks
 
Posts: 8
Joined: Sat Dec 23, 2017 3:08 pm

Re: Culling mode access

Postby HellGate » Wed Jan 10, 2018 6:02 pm

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
HellGate
 
Posts: 7
Joined: Wed Nov 29, 2017 3:53 pm

Re: Culling mode access

Postby Amplify_Borba » Thu Jan 11, 2018 11:00 am

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!
User avatar
Amplify_Borba
 
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 84 guests