Page 1 of 1

Culling mode access

PostPosted: Wed Jan 10, 2018 4:14 pm
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

Re: Culling mode access

PostPosted: Wed Jan 10, 2018 6:02 pm
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

Re: Culling mode access

PostPosted: Thu Jan 11, 2018 11:00 am
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!