processing.core
Class PMaterial

java.lang.Object
  extended by processing.core.PMaterial

public class PMaterial
extends java.lang.Object


Field Summary
 float ambientB
          Ka parameters of the material.
 float ambientG
          Ka parameters of the material.
 float ambientR
          Ka parameters of the material.
 float diffuseB
          Kd parameters of the material
 float diffuseG
          Kd parameters of the material
 float diffuseR
          Kd parameters of the material
 float emissiveB
          Ke parameters of the material
 float emissiveG
          Ke parameters of the material
 float emissiveR
          Ke parameters of the material
 float shininess
          Se parameter of the material
 float specularB
          Ks parameters of the material
 float specularG
          Ks parameters of the material
 float specularR
          Ks parameters of the material
 
Constructor Summary
PMaterial(float ambientR, float ambientG, float ambientB, float diffuseR, float diffuseG, float diffuseB, float specularR, float specularG, float specularB, float emissiveR, float emissiveG, float emissiveB, float shininess)
           
 
Method Summary
 void ambient(float r, float g, float b)
           
 void diffuse(float r, float g, float b)
           
 void emissive(float r, float g, float b)
           
 void shininess(float s)
           
 void specular(float r, float g, float b)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ambientR

public float ambientR
Ka parameters of the material.


ambientG

public float ambientG
Ka parameters of the material.


ambientB

public float ambientB
Ka parameters of the material.


diffuseR

public float diffuseR
Kd parameters of the material


diffuseG

public float diffuseG
Kd parameters of the material


diffuseB

public float diffuseB
Kd parameters of the material


specularR

public float specularR
Ks parameters of the material


specularG

public float specularG
Ks parameters of the material


specularB

public float specularB
Ks parameters of the material


emissiveR

public float emissiveR
Ke parameters of the material


emissiveG

public float emissiveG
Ke parameters of the material


emissiveB

public float emissiveB
Ke parameters of the material


shininess

public float shininess
Se parameter of the material

Constructor Detail

PMaterial

public PMaterial(float ambientR,
                 float ambientG,
                 float ambientB,
                 float diffuseR,
                 float diffuseG,
                 float diffuseB,
                 float specularR,
                 float specularG,
                 float specularB,
                 float emissiveR,
                 float emissiveG,
                 float emissiveB,
                 float shininess)
Method Detail

ambient

public void ambient(float r,
                    float g,
                    float b)

diffuse

public void diffuse(float r,
                    float g,
                    float b)

specular

public void specular(float r,
                     float g,
                     float b)

emissive

public void emissive(float r,
                     float g,
                     float b)

shininess

public void shininess(float s)