Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: LitMaterial 设置纹理重复无效,UnLitMaterial 有效 #435

Open
ID-Emmett opened this issue Jul 27, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@ID-Emmett
Copy link
Contributor

Bug描述

image

这是有效的:
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));

测试引擎版本:

本地运行出错的Orillusion引擎版本, e.g. 0.8.1

@ID-Emmett ID-Emmett added the bug Something isn't working label Jul 27, 2024
@lslzl3000
Copy link
Collaborator

感谢反馈,下个版本会统一命名方式

@ID-Emmett
Copy link
Contributor Author

看了下改动,0.8.3中LitMaterial纹理重复是这样配置的:
mat.setUniformVector4('baseMapOffsetSize', new Vector4(0, 0, 60, 60));
mat.setUniformVector4('normalMapOffsetSize', new Vector4(0, 0, 60, 60));
建议在文档说明一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants