Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. struct Input
  2. {
  3. float3 worldNormal;
  4. // this macro in Input struct & call to WorldNormalVector required if you want to get world
  5. // space one from the o.Normal that you might just have written into
  6. INTERNAL_DATA
  7. };
  8. void surf(Input IN, inout SurfaceOutput o)
  9. {
  10. o.Normal = /* sample the normal map etc */
  11. half3 worldNormal = WorldNormalVector(IN, o.Normal);
  12. // there!
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement