chrismiles / CMTraerPhysics

Objective-C/Cocoa port of the Traer v3.0 physics engine; with iOS demo app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to modify opacity of textured image?

niravspaceo opened this issue · comments

Hi Chris,

I want to modify opacity of textured image.So how can i do that in openGL?

Thanks,
Nirav

You will need to update the image to include transparency, then enable OpenGL blend mode and configure the appropriate blending function with glBlendFunc(). I suggest reading up on OpenGL ES blending.

Cheers,
Chris