suxinde2009 / isgl3d

Automatically exported from code.google.com/p/isgl3d
Other
0 stars 0 forks source link

Gray color around the edge of PNG images with transparency #16

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Use a PNG image with transparency for texture material.

What is the expected output? 
Normal image without gray color in the edge.

What do you see instead?
Image with gray color around the edge.

What version of the product are you using? On what operating system?
ISGL3D v1.2.2

Please provide any additional information below.
To temporarily solve the problem,
in class Isgl3dGenericShader, 
class Isgl3dGLRenderer1,
class Isgl3dGLRenderer2,
method handleStates 
I replace:
glBlendFunc(GL_SRC_ALPHA ,GL_ONE_MINUS_SRC_ALPHA);
with:
glBlendFunc(GL_ONE ,GL_ONE_MINUS_SRC_ALPHA);

Original issue reported on code.google.com by r...@ptgdi.com on 9 Sep 2011 at 4:25