You can use pixel shader input VFACE / SV_IsFrontFace / gl_FrontFacing to check if current pixel belongs to a front facing or to a back facing triangle. It it's back facing then just flip normal and shade as usually.
Krzysztof NarkowiczMember Since 13 Aug 2010
Offline Last Active Today, 03:49 PM
- Group Members
- Active Posts 38
- Profile Views 2,470
- Submitted Links 0
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
Krzysztof Narkowicz hasn't added any contacts yet.