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)