0
votes
1answer
166 views

How can I draw a small bitmap on a larger bitmap at a particular position? (Canvas / SurfaceView)

I'm building a game that requires additive blending of colours for certain bitmaps. Say I have 4 different types object, there are maybe ten of each type on the screen with each type having a ...
4
votes
2answers
877 views

Blending textures together, texture fade over / fade in

What is the best way to render a texture overlapping effect? Like in this example: I want either the grass to fade in to the snow texture, or the other way around. No rough edges. Somehow make ...
0
votes
1answer
235 views

Rendering two textures with blending and alpha test

What I am looking for is the following: I have a circle on a square image, alpha is 0 at the corners and also a square shadow, alpha is 0 everywhere else I would like to have as final result a ...
0
votes
1answer
955 views

Making a surface transparent from blackness of texture

I am making a "halo" shader in unity using GLSL. And I've come to a roadblock. What I need to do is take a texture, like the following, and make it transparent according to the darkness of it. And I ...
3
votes
2answers
2k views

blending alpha textures in gluOrtho2D

i'm doing a simple game/application with some minimal 2d graphics: png textures and ploygons with standard glVertex calls my setting: glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0, w, ...