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

changing Albedo Color programatically #111

Open
mrweix opened this issue Apr 5, 2016 · 1 comment
Open

changing Albedo Color programatically #111

mrweix opened this issue Apr 5, 2016 · 1 comment

Comments

@mrweix
Copy link

mrweix commented Apr 5, 2016

What would be a correct way to change the Albedo Color programatically? Which function is called? I only find

flags.onChange(hsb, hex, rgb, el, bySetColor);

in Component.js. How can I call something similar from outside? Thanks for any tips!

@cignoni
Copy link
Member

cignoni commented Apr 6, 2016

the correct way to programmatically change the color of a mesh is to use the new color function filters that allow to define r g b for each vertex/face of the mesh according to a user defined function. Currently they are added in the muparser branch but, hopefully this branch will soon be merged into master one.

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