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