
com.ctreber.acearth.shader.ShaderFlat Maven / Gradle / Ivy
package com.ctreber.acearth.shader;
import java.awt.Color;
/**
* Flat shader (does not care for Projection).
*
* © 2002 Christian Treber, [email protected] (Nov 11, 2002)
* @author Christian Treber, [email protected]
*
*/
public class ShaderFlat extends Shader
{
public Color[] getShadedColors(int pRowNo, int[] pRowTypes)
{
final Color[] lColors = new Color[pRowTypes.length];
for(int i = 0; i < pRowTypes.length; i++)
{
lColors[i] = getShadedColorForType(pRowTypes[i], 1.0);
}
return lColors;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy