June 2013
Beginner
352 pages
9h 5m
English
Shininess is an illumination property that gives onlookers a better idea whether the surface is smooth or rough. The Lighting.j3md material definition not only supports plain material colors but can also render specular highlights (what we colloquially call shininess) on top of the material colors.
Let's make a smooth geometry:
Main.java and name the class MaterialColorShiny.java. Remember to also refactor the first line of the main() method to MaterialColorShiny app = new MaterialColorShiny();.simpleInitApp() method with the following:Sphere sphereMesh = new Sphere(32,32, 1f); Geometry sphere1Geo = new Geometry("rough sphere", sphereMesh); Material sphere1Mat = new ...Read now
Unlock full access