AMD RenderMonkey GLSG Config for alpha transparency

I'm trying to use RenderMonkey to design a GLSL shader that uses Alpha transparency, and the RenderState editor doesn't use the same terms I'm used to from OpenGL. Can anyone advise on how to set it up for simple alpha transparency?

+1


a source to share


1 answer


RenderMonkey rips out RGB and A source and dest, whereas OpenGL treats them as one with combinations in GLenums like GL_SRC_ALPHA, and GL_ONE_MINUS_SRC_ALPHA is passed to glBlendFunc (). For example GL_SRC_ALPHA sets the RGB and A source, but RenderMonkey appears and wants to do them individually. So as soon as you turn GL_BlendEnable TRUE, you just need to install: GL_BlendDestAlpha INV_SRC_ALPHA (equivalent to part A GL_ONE_MINUS_SRC_ALPHA) GL_BlendDestRGB INV_SRC_ALPHA (RGB equivalent parts GL_ONE_MINUS_SRC_ALPHA) GL_BlendSourceAlpha SRC_ALPHA (RGB equivalent parts GL_SRC_ALPHA) GL_BlendSourceRGB SRC_ALPHA (RGB equivalent parts GL_SRC_ALPHA)



+4


a source







All Articles