Skip to content

Instantly share code, notes, and snippets.

@RoyLab
Created June 23, 2017 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RoyLab/8902254c1b2b5dcf4c418f688ef7ddb9 to your computer and use it in GitHub Desktop.
Save RoyLab/8902254c1b2b5dcf4c418f688ef7ddb9 to your computer and use it in GitHub Desktop.
compute bump
//float3 T = normalize(i.uBase - dot(i.uBase, N)*N);
//float3 B = cross(N, T);
//float3x3 TBN = float3x3(T, B, N);
//float3 normal = mul(rawN, TBN);
//return fixed4((normalize(finalNormal * float3(1,1,1))), 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment