This question was
closed Oct 01, 2016 at 11:03 PM by
Zitoox for the following reason:
I made some changes in a script that i had an now it is working fine.
I am still not going to use Blender.
Question by
Zitoox · Oct 01, 2016 at 10:53 PM ·
normalsreverseinsidesee through
Flip normals
I have a transparent sphere with a double-face script, and i wanted to see it from inside, but it isn't working. I've tried everything that i know and also asked others for help, but none of them knew the answer for this. I don't like to use Blender, so i am going to be short:
Do anyone have a script to reverse an object's normals OR turn off default culling or at least know other way to do it IN UNITY?
Thanks.
Comment
Open a surface shader. To turn off culling use:
Cull Off
and to reverse normals use:
float3 n = UnpackNormal(text2D(_Bump, IN.uv_Bump));
o.Normal = dot(IN.viewDir, float3(0, 0, 1)) > 0 ? n : -n;
What was your solution?