private void readShade(GroupSector gs, Node node) {
		Direction d = null;
		String direction = null;
		Color shade;
		String color = null;
		String texture = null;
		
		NamedNodeMap map = node.getAttributes();
		
		Node attrs;
		
		attrs = map.getNamedItem( "dir" );
		if ( attrs != null ) {
			direction = attrs.getNodeValue().trim();	
		}
		
		attrs = map.getNamedItem( "color" );
		if ( attrs != null ) {
			color = attrs.getNodeValue().trim();	
		}
				
		attrs = map.getNamedItem( "texture" );
		if ( attrs != null ) {
			texture = attrs.getNodeValue().trim();
		}

		if ( direction != null ) {
			d = Direction.getDirectionForSimpleName(direction);	
		}		

		if ( color == null ) {
			shade = new Color();
		} else {
			shade = Color.getColorFromHTMLColor( color );
		}

		Material m = Material.makeWithColorAndTexture( shade, texture );
		
		if (d != null) {
			gs.shades.put( d,  m );
		}
	}