初始化阶段相机的视图矩阵/投影矩阵等全都未赋值
看了下源码,还要等到update里面 this._node.hasChangedFlags || forceUpdate 的时候才更新
设计不合理,起码要像 node.worldPosition 一样在用户主动取值的时候把值赋上吧?
/**
* @en Position in world coordinate system
* @zh 世界坐标系下的坐标
*/
// @constget
public get worldPosition (): Readonly<Vec3> {
this.updateWorldTransform();
return this._pos;
}



很难受,效果不对我在shader里查不出原因,然后在组件里看