galacean / engine

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

ShaderLab macro bug #2089

Closed zhuxudong closed 2 months ago

zhuxudong commented 5 months ago

will throw error

   #define test
    float a2;

temporary solution

  #define test 1
   float a2;
zhuxudong commented 2 months ago

fixed