非static 定义的变量在shader里面不会使用初始值。
比如float screen_width = 1280.0;
比如float screen_width = 1280.0;
运行时并不会等于1280,貌似会变成0.
好像要调用SetDefault()方法。
-----------------------------------------------------------
每天进步一点
当了解的越多,就越会发现自己的浅薄