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
Adjusting opacity / size of particles and lines #297
Comments
I, too, would like to know this. |
|
Hi mrdoob. geometry.colors[1] would be a Three.color. I can happily change the color, but as far as I know the opacity value is not stored there. So how can I change the opacity of single vertices / lines? |
Uh oh... |
You cannot do this easily, opacity is specified per material not per element. We dropped alpha from One possible way would be via custom attributes and custom The same thing for sizes, there is currently no way to change them per-particle or per-line with default attributes and materials. You would need another attribute stream for size and then have custom material which would use this. |
Now I can't remember why we decided to remove alpha from |
I don't remember either, I was able to find this: Seems like hex colors with alphas were making troubles. Now, with more dependencies in asset pipeline, I guess it would be even more painful. |
being able to specify opacity per vertex would be very useful for doing particle systems. is there any plan for supporting this in a future release? I'm not sure what the technical difficulty is here. intuitively, having something like |
@quyin You can do what you want with a custom |
@WestLangley I see. thanks for the info! on the other hand it would be nice if this can be done in JS, especially for people who are not familiar with the shader language, including me. thanks all the same though! |
I have a particle system and a line. I can easily set the colour of each vertex and edge in my line by creating a colors array and seting VertexColors to true. My question is How can I adjust the a) opacity b) size of each vertex / edge individually in my particle system / line.
Thanks!
Zenna
The text was updated successfully, but these errors were encountered: