Revision 15727 trunk/libraries/lib3DMap/src/com/iver/ai2/gvsig3d/cacheservices/FLayerCacheService.java

View differences:

FLayerCacheService.java
138 138
			// Getting layer transparency
139 139
			int trans = ((FLyrDefault)_layer).getTransparency();
140 140
			// Casting to float
141
			float transFloat = (float) ((float) trans/255.0);
141
			float transFloat = (float) ((float) (255-trans)/255.0);
142 142
			// Setting in the layers 3D props
143 143
			props3D.setOpacity(transFloat);
144 144
			// fix opaque the layer to save in disk 

Also available in: Unified diff