0
votes
1answer
65 views

Algorithm for texture blending modification

Im currently writing a terrain editor for my game (for the record: no commercial intentions) and after having implemented the terrain morphing to my liking im now working on the texturing of said ...
0
votes
0answers
33 views

Render just light, apply post processing and apply texture

Hi I have to apply a postprocess just on the irradiance and not on the colour texture, what is the best way to do the following: Render Irradiance (i.e. no diffuse colour) Apply post-processing ...
0
votes
1answer
209 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
932 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
241 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
997 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, ...