Examples of ScatteringAdapterMaterial


Examples of ca.eandb.jmist.framework.material.ScatteringAdapterMaterial

    Material matteWhite = new LambertianMaterial(colorModel.getContinuous(white));
    Material matteGreen = new LambertianMaterial(colorModel.getContinuous(green));
    Material matteRed = new LambertianMaterial(colorModel.getContinuous(red));
    Material matteEmissive = new LambertianMaterial(colorModel.getGray(0.78), colorModel.getContinuous(emission));

    matteWhite = new ScatteringAdapterMaterial(matteWhite, strategy, weight);
    matteGreen = new ScatteringAdapterMaterial(matteGreen, strategy, weight);
    matteRed = new ScatteringAdapterMaterial(matteRed, strategy, weight);
    matteEmissive = new ScatteringAdapterMaterial(matteEmissive, strategy, weight);

    SceneElement materialMap = new MaterialMapSceneElement(geometry)
        .addMaterial("white", matteWhite)
        .addMaterial("red", matteRed)
        .addMaterial("green", matteGreen)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.