|
|
|
@ -140,27 +140,27 @@ public class RenderState implements Cloneable, Savable { |
|
|
|
|
/** |
|
|
|
|
* Additive blending. For use with glows and particle emitters. |
|
|
|
|
* <p> |
|
|
|
|
* Result = Source Color + Destination Color |
|
|
|
|
* Result = Source Color + Destination Color -> (GL_ONE, GL_ONE) |
|
|
|
|
*/ |
|
|
|
|
Additive, |
|
|
|
|
/** |
|
|
|
|
* Premultiplied alpha blending, for use with premult alpha textures. |
|
|
|
|
* <p> |
|
|
|
|
* Result = Source Color + (Dest Color * (1 - Source Alpha) ) |
|
|
|
|
* Result = Source Color + (Dest Color * (1 - Source Alpha) ) -> (GL_ONE, GL_ONE_MINUS_SRC_ALPHA) |
|
|
|
|
*/ |
|
|
|
|
PremultAlpha, |
|
|
|
|
/** |
|
|
|
|
* Additive blending that is multiplied with source alpha. |
|
|
|
|
* For use with glows and particle emitters. |
|
|
|
|
* <p> |
|
|
|
|
* Result = (Source Alpha * Source Color) + Dest Color |
|
|
|
|
* Result = (Source Alpha * Source Color) + Dest Color -> (GL_SRC_ALPHA, GL_ONE) |
|
|
|
|
*/ |
|
|
|
|
AlphaAdditive, |
|
|
|
|
/** |
|
|
|
|
* Color blending, blends in color from dest color |
|
|
|
|
* using source color. |
|
|
|
|
* <p> |
|
|
|
|
* Result = Source Color + (1 - Source Color) * Dest Color |
|
|
|
|
* Result = Source Color + (1 - Source Color) * Dest Color -> (GL_ONE, GL_ONE_MINUS_SRC_COLOR) |
|
|
|
|
*/ |
|
|
|
|
Color, |
|
|
|
|
/** |
|
|
|
@ -168,19 +168,19 @@ public class RenderState implements Cloneable, Savable { |
|
|
|
|
* using source alpha. |
|
|
|
|
* <p> |
|
|
|
|
* Result = Source Alpha * Source Color + |
|
|
|
|
* (1 - Source Alpha) * Dest Color |
|
|
|
|
* (1 - Source Alpha) * Dest Color -> (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) |
|
|
|
|
*/ |
|
|
|
|
Alpha, |
|
|
|
|
/** |
|
|
|
|
* Multiplies the source and dest colors. |
|
|
|
|
* <p> |
|
|
|
|
* Result = Source Color * Dest Color |
|
|
|
|
* Result = Source Color * Dest Color -> (GL_DST_COLOR, GL_ZERO) |
|
|
|
|
*/ |
|
|
|
|
Modulate, |
|
|
|
|
/** |
|
|
|
|
* Multiplies the source and dest colors then doubles the result. |
|
|
|
|
* <p> |
|
|
|
|
* Result = 2 * Source Color * Dest Color |
|
|
|
|
* Result = 2 * Source Color * Dest Color -> (GL_DST_COLOR, GL_SRC_COLOR) |
|
|
|
|
*/ |
|
|
|
|
ModulateX2 |
|
|
|
|
} |
|
|
|
|