Jason Tackaberry wrote:
Hi all,

I have observed that if I attach a fragment program A to a texture and
another fragment program B to that texture's container, B does not get
executed for the texture, whereas A does.

I want to attach a shader to the stage which does some color correction,
and want it to apply to everything on the stage, however some textures
on the stage will have shaders of their own.

Is this considered a bug (i.e. should I file one), or is this some side
effect of a design decision?

Thanks,
Jason.

Hi, Jason
clutter_actor_set_shader() only applies shader to the actor itself, it won't walk through container for you. For the purpose of applying shader to the stage and everything on the stage, you may need to take a look at:
       clutter_texture_new_from_actor (ClutterActor *actor)
As its documentation said, "Note this function is intented as a utility call for uniformly applying shaders to groups and other potential visual effects."

Thanks
   --Shuan
--
To unsubscribe send a mail to [email protected]

Reply via email to