-
-
Save toxicFork/9246d07ee71f3c704f3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if PLANE_CLIPPING_ENABLED | |
#define IN_WORLDPOS_FWDADD(i) i.posWorld | |
#else | |
#define IN_WORLDPOS_FWDADD(i) half3(0,0,0) | |
#endif | |
#define FRAGMENT_SETUP_FWDADD(x) FragmentCommonData x = \ | |
FragmentSetup(i.tex, i.eyeVec, WorldNormal(i.tangentToWorldAndLightDir), IN_VIEWDIR4PARALLAX_FWDADD(i), ExtractTangentToWorldPerPixel(i.tangentToWorldAndLightDir), IN_WORLDPOS_FWDADD(i)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment