Thanks for your reply.
Originally Posted by ak
Here, I must realize the function like bf3 and bf4. In bf3, change the lightColor. Now, my code is
and I know there need another "color" parameter,but in flex API, I can't find the correct type. So ,I would like to konw how to write the code let it right?
this.mView.add_command(new Rs_command( Rs_commands.SET_COLOR_ATTRIBUTE, ["spotLight_shader", ... ] ));
And the other question is the element "cradle_material_shader" in bf3, if I want to change the materialColor, I need change several parameters such as specularColor,diffuse_color.. So, should I write the code like this :
Actually, I really want to know whether the Flex API can realize all the functions like the demos(bf1,bf2...)?
this.mView.add_command(new Rs_command( Rs_commands.SET_COLOR_ATTRIBUTE, ["spotLight_shader.specularColor", ... ] ));
Please someone gives me your help. Thanks!