The fastest way with the least waste is probably to create a rectangle shape the same size as the screen. If your light is a circle or ellipse then draw it directly into the alpha channel and redraw it with the lighting tint color into the RGB. or it could itself be a sprite. Then set the blend mode and blit it on
This way you don't have to deal with resource for a larger than canvas image and can insert it wherever you need it in the batch/group order. -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
