Created
June 23, 2017 10:51
-
-
Save RoyLab/8902254c1b2b5dcf4c418f688ef7ddb9 to your computer and use it in GitHub Desktop.
compute bump
This file contains hidden or 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
//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