Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save toxicFork/c8a75491e271e27572b3 to your computer and use it in GitHub Desktop.
#define IN_WORLDPOS(i) i.posWorld
#define IN_WORLDPOS(i) half3(0,0,0)
#define IN_LIGHTDIR_FWDADD(i) half3(i.tangentToWorldAndLightDir[0].w, i.tangentToWorldAndLightDir[1].w, i.tangentToWorldAndLightDir[2].w)
#define FRAGMENT_SETUP(x) FragmentCommonData x = \
FragmentSetup(i.tex, i.eyeVec, WorldNormal(i.tangentToWorldAndParallax), IN_VIEWDIR4PARALLAX(i), ExtractTangentToWorldPerPixel(i.tangentToWorldAndParallax), IN_WORLDPOS(i));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment