Maven module :un.engine : engine-opengl :
Class : un.engine.opengl.material.Layer
Extends/Implements : -
Subclasses : -

author  Johann Sorel


Variables : TYPE_DIFFUSE, TYPE_SPECULAR, TYPE_AMBIENT, TYPE_NORMAL, TYPE_ALPHA, METHOD_ADDITIVE, METHOD_MULTIPLY, METHOD_SRC_OVER
Functions : Layer, Layer, Layer, Layer, Layer, getMapping, setMapping, setRatio, getRatio, getType, setType, getMethod, setMethod, isDirty, dispose



Material diffuse color.
public int TYPE_DIFFUSE


Material specular color.
Knowned as specular mapping.
public int TYPE_SPECULAR


Material ambient color.
Knowned as ambient mapping.
public int TYPE_AMBIENT


Used to correct model normals.
Knowned as normal/bump mapping.
public int TYPE_NORMAL


Combined with an opaque diffuse layers to obtain a translucent image.
public int TYPE_ALPHA


When several layer affect the same output : this value is added to base value
public int METHOD_ADDITIVE


When several layer affect the same output : base value is multiplied by this value
public int METHOD_MULTIPLY


When several layer affect the same output : base value is blend using porter-duff src-over rule
public int METHOD_SRC_OVER


public void Layer ()

public void Layer (Mapping mapping)

public void Layer (Mapping mapping, int type)

public void Layer (Mapping mapping, int type, int method)

public void Layer (Mapping mapping, int type, int method, float ratio)

public Mapping getMapping ()

public void setMapping (Mapping mapping)

public void setRatio (float ratio)

public float getRatio ()

public int getType ()

public void setType (int type)

public int getMethod ()

public void setMethod (int method)

public boolean isDirty ()

public void dispose (GLProcessContext context)