galacean / engine

A typescript interactive engine, support 2D, 3D, animation, physics, built on WebGL and glTF.
https://galacean.antgroup.com/
MIT License
4.04k stars 289 forks source link

The code in the ShaderLab macro cannot determine whether it is a vertex or a fragment. #2090

Open zhuxudong opened 2 months ago

zhuxudong commented 2 months ago
#ifdef test
    void test(){}
#endif

vert(){
}

frag(){
    test()
}
Sway007 commented 1 month ago

fixed by #2087

zhuxudong commented 1 month ago

fixed by #2087

not this issue