LwsFog(StreamTokenizer st, int debugVals) throws ParsingErrorException {
	debugPrinter.setValidOutput(debugVals);
	debugOutput(TRACE, "LwsFog()");
	color = new Color3f(0f, 0f, 0f);

	while (!isCurrentToken(st, "DitherIntensity")) {
	    debugOutputLn(LINE_TRACE, "currentToken = " + st.sval);

	    if (isCurrentToken(st, "FogMinDist")) {
		minDist = (float)getNumber(st);
	    }
	    else if (isCurrentToken(st, "FogMaxDist")) {
		maxDist = (float)getNumber(st);
	    }
	    else if (isCurrentToken(st, "FogMinAmount")) {
		minAmount = (float)getNumber(st);
	    }
	    else if (isCurrentToken(st, "FogMaxAmount")) {
		maxAmount = (float)getNumber(st);
	    }
	    else if (isCurrentToken(st, "BackdropFog")) {
		backdropFog = (int)getNumber(st);
	    }
	    else if (isCurrentToken(st, "FogColor")) {
		color.x = (float)getNumber(st)/255f;
		color.y = (float)getNumber(st)/255f;
		color.z = (float)getNumber(st)/255f;
	    }
	    try {
	      st.nextToken();
	    }
	    catch (IOException e) {
		throw new ParsingErrorException(e.getMessage());
	    }
	}
	st.pushBack();   // push token back on stack
    }