Class SoftwareMaterial


  • public class SoftwareMaterial
    extends java.lang.Object
    This class maintains the following material properties:

    - emissive color (unaffected by lights) - ambient color (affected only by ambient lights) - diffuse color (for diffuse lighting; can be replaced by vertex color) - specular color (for specular lighting; can be replaced by vertex color) - specular shininess (set to zero to disable specular effects)

    • Field Summary

      Fields 
      Modifier and Type Field Description
      javax.vecmath.Color3f ambient
      DOCUMENT ME!
      javax.vecmath.Color3f diffuse
      DOCUMENT ME!
      javax.vecmath.Color3f emissive
      Defaults colors set according to defaults for Java3D Material.
      float shininess
      Disable specular lighting effects.
      javax.vecmath.Color3f specular
      DOCUMENT ME!
    • Constructor Summary

      Constructors 
      Constructor Description
      SoftwareMaterial()
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasSpecular()
      Query whether the material has specular properties.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ambient

        public javax.vecmath.Color3f ambient
        DOCUMENT ME!
      • diffuse

        public javax.vecmath.Color3f diffuse
        DOCUMENT ME!
      • emissive

        public javax.vecmath.Color3f emissive
        Defaults colors set according to defaults for Java3D Material.
      • shininess

        public float shininess
        Disable specular lighting effects.
      • specular

        public javax.vecmath.Color3f specular
        DOCUMENT ME!
    • Constructor Detail

      • SoftwareMaterial

        public SoftwareMaterial()
        Default constructor. Sets the colors to defaults and disables specular properties.
    • Method Detail

      • hasSpecular

        public boolean hasSpecular()
        Query whether the material has specular properties.
        Returns:
        boolean True if the material has specular properties.