input-standard.chunk 465 B

123456789101112131415161718192021
  1. // Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd.
  2. #include <legacy/decode-standard>
  3. #include <common/data/unpack> //decode32
  4. #if CC_USE_MORPH
  5. #include <legacy/morph>
  6. #endif
  7. #if CC_USE_SKINNING
  8. #include <legacy/skinning>
  9. #endif
  10. void CCVertInput(inout StandardVertInput In)
  11. {
  12. CCDecode(In);
  13. #if CC_USE_MORPH
  14. applyMorph(In.position, In.normal, In.tangent);
  15. #endif
  16. #if CC_USE_SKINNING
  17. CCSkin(In.position, In.normal, In.tangent);
  18. #endif
  19. }