public static int[] getShades(short colix) { colix &= NuGraphics3D.OPAQUE_MASK; int[] shades = ashades[colix]; if (shades == null) { shades = ashades[colix] = Shade3D.getShades(argbs[colix], false); } return(shades); }
public static int[] getShadesGreyscale(short colix) { colix &= NuGraphics3D.OPAQUE_MASK; if (ashadesGreyscale == null) { ashadesGreyscale = new int[ashades.Length][]; } int[] shadesGreyscale = ashadesGreyscale[colix]; if (shadesGreyscale == null) { shadesGreyscale = ashadesGreyscale[colix] = Shade3D.getShades(argbs[colix], true); } return(shadesGreyscale); }