|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.PhongMaterial
public class PhongMaterial
Material object for Phong shading model (with constant or Schlick K() term).
Field Summary | |
---|---|
double[] |
color
Actual color (set by LightModel.setColor(double[], cz.cuni.jagrlib.iface.Property) ). |
double |
cosTotal
Limit cos-value for total reflection. |
int |
h
Specular reflection exponent. |
double |
ka
Ambient-light coefficient. |
double |
kd
Diffuse reflection coefficient. |
double |
ks
Specular reflection coefficient. |
double |
kt
Transmission (refraction) coefficient. |
double |
n
Relative index of refraction. |
double[] |
origColor
Original color of the solid surface. |
double |
sch
Schlick blending coefficient ( 0.0 .. non-Schlick, 1.0 .. |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Constructor Summary | |
---|---|
PhongMaterial()
Default constructor. |
Method Summary | |
---|---|
Object |
get(String key)
Gets the given property. |
void |
set(String key,
Object value)
Sets the given property. |
Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, stringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double[] origColor
public double[] color
LightModel.setColor(double[], cz.cuni.jagrlib.iface.Property)
).
public double ka
public double kd
public double ks
public int h
public double kt
public double n
public double cosTotal
public double sch
0.0
.. non-Schlick, 1.0
.. Schlick).
Constructor Detail |
---|
public PhongMaterial()
Method Detail |
---|
public void set(String key, Object value)
set
in interface Property
set
in class DefaultProperty
key
- Key string.value
- The new value.Property.commit()
public Object get(String key)
get
in interface Property
get
in class DefaultProperty
key
- Key string.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |