Appended the proper OpenGL constants to Javadoc for BlendMode.

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8154 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
dan..om 13 years ago
parent 87435a37d3
commit 7042720106
  1. 14
      engine/src/core/com/jme3/material/RenderState.java

@ -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
}

Loading…
Cancel
Save