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
RawShaderMaterial does not use opacity #11049
Comments
@clawconduce I think it is just for use when you include parts of What I found:
If you want to adjust opacity with |
I see, thanks! I think the docs could use some clarification. For example, "RawShaderMaterial( parameters ) parameters - (optional) an object with one or more properties defining the material's appearance. Any property of the material (including any property inherited from Material and ShaderMaterial) can be passed in here." I'm not sure the best way to update those, I'd probably just add an exception. I could make the PR if that sounds OK. I'm a little new to WebGL, so you'll have to excuse my terminology. Does this also mean that a Material's opacity is applied per vertex? If I put 50% opacity on the material, and have 2 overlapping points, where they overlap will the color have >50% opacity? |
Yeah, with a |
Description of the problem
RawShaderMaterial opacity is not used, even when the transparency flag is set. I have seen this issue in r84 & versions as far back as r78. I have mainly been using Chrome Version 56.0.2924.87 (64-bit), but saw this in Firefox for r84 as well. I expect my objects to use 50% opacity if the opacity in the RawShaderMaterial is set.
I have a test html page that shows the issue. Note that the opacity & transparency are passed into the RawShaderMaterial yet the points render as solid blue:
https://jsfiddle.net/jg4ta1po/
Three.js version
First noticed in r78, no data before that point.
Browser
Probably more
OS
I believe I have seen this on Linux (Fedora) as well, but that was a while ago and not my computer.
Hardware Requirements (graphics card, VR Device, ...)
I don't believe it's significant, but I am running on MacBook Pro (Retina, 15-inch, Late 2013) while using discrete only graphics NVIDIA GeForce GT 750M.
The text was updated successfully, but these errors were encountered: