ID-Emmett opened this issue 5 months ago · 2 comments
这是有效的: let mat = new UnLitMaterial(); mat.setUniformVector4('transformUV1', new Vector4(0, 0, 2, 2));
let mat = new UnLitMaterial(); mat.setUniformVector4('transformUV1', new Vector4(0, 0, 2, 2));
这是无效的: let mat = new LitMaterial(); mat.setUniformVector4('transformUV1', new Vector4(0, 0, 2, 2));
let mat = new LitMaterial(); mat.setUniformVector4('transformUV1', new Vector4(0, 0, 2, 2));
本地运行出错的Orillusion引擎版本, e.g. 0.8.1
感谢反馈,下个版本会统一命名方式
看了下改动,0.8.3中LitMaterial纹理重复是这样配置的: mat.setUniformVector4('baseMapOffsetSize', new Vector4(0, 0, 60, 60)); mat.setUniformVector4('normalMapOffsetSize', new Vector4(0, 0, 60, 60)); 建议在文档说明一下
LitMaterial
mat.setUniformVector4('baseMapOffsetSize', new Vector4(0, 0, 60, 60));
mat.setUniformVector4('normalMapOffsetSize', new Vector4(0, 0, 60, 60));