Original Post
hello, how do i generate a texture only representing alphas by hand and load it? e.g. a 4x4 texture: float data[4*4] = [0.1, 0.1, 0.1, 0.1, 0.1, 0.5, 0.5, 0.1, 0.1, 0.5, 0.5, 0.1, 0.1, 0.1, 0.1, 0.1 ] defining it like that and then do:
glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, 4, 4, 0, GL_ALPHA, GL_FLOAT, &data);
seems not to work... anyone?