-
Notifications
You must be signed in to change notification settings - Fork 520
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
X3D serializer: Material RGB colors #1232
Conversation
I will be glad to address any review comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good :)
@@ -177,7 +177,7 @@ const convertAppearance = (object, options) => { | |||
const colorRGB = object.color.slice(0, 3) | |||
const diffuseColor = colorRGB.join(' ') | |||
const emissiveColor = colorRGB.join(' ') | |||
const transparency = object.color[3] | |||
const transparency = 1.0 - object.color[3] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the late change. I had never pushed this correction.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andreasplesch thanks again for these changes.
its nice to have someone else looking at this code, and making improvements.
Thanks, no problem. |
All Submissions:
fixes #1231
some additional cleanup as suggested by standardx.