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

THREEjs 使用122版本出现问题 #6

Open
msdog opened this issue Mar 4, 2021 · 2 comments
Open

THREEjs 使用122版本出现问题 #6

msdog opened this issue Mar 4, 2021 · 2 comments

Comments

@msdog
Copy link

msdog commented Mar 4, 2021

image

@msdog
Copy link
Author

msdog commented Mar 4, 2021

image

@onehumanbeing
Copy link

结合 回答, texture关键词被占用了,修改fragmentShader相关代码后,需要修改

texture: { value: this.texture }

比如修改shaders.js代码
uniform sampler2D particleTexture;
则emitter.js里面修改为
uniforms: { particleTexture: { value: this.texture } },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants