Files
cocos-engine/editor/assets/chunks/input-standard.chunk
jk20012001 2549157630 Rearrange IA input variables and functions for surface shader (#10123)
* Rearrange IA input variables and functions for surface shader
Fix default_skybox.meta missing

* Update compiled shaders

* Fix code style
2022-02-17 17:16:00 +08:00

20 lines
405 B
Plaintext

// Copyright (c) 2017-2020 Xiamen Yaji Software Co., Ltd.
#include <decode-standard>
#if CC_USE_MORPH
#include <morph>
#endif
#if CC_USE_SKINNING
#include <cc-skinning>
#endif
void CCVertInput(inout StandardVertInput In)
{
CCDecode(In);
#if CC_USE_MORPH
applyMorph(In.position, In.normal, In.tangent);
#endif
#if CC_USE_SKINNING
CCSkin(In.position, In.normal, In.tangent);
#endif
}