Code refactoring.
[sixth-3d.git] / src / main / java / eu / svjatoslav / sixth / e3d / renderer / raster / shapes / basic / ForwardOrientedTexture.java
index 474f05c..4d2bb1f 100644 (file)
@@ -18,7 +18,7 @@ import eu.svjatoslav.sixth.e3d.renderer.raster.texture.TextureBitmap;
 
 public class ForwardOrientedTexture extends AbstractCoordinateShape {
 
-    public static final double SIZE_MULTIPLIER = 0.005;
+    private static final double SIZE_MULTIPLIER = 0.005;
     public Texture texture;
     private double scale;
 
@@ -78,7 +78,7 @@ public class ForwardOrientedTexture extends AbstractCoordinateShape {
         if (xEnd > targetRenderingArea.width)
             xEnd = targetRenderingArea.width;
 
-        final byte[] targetRenderingAreaBytes = targetRenderingArea.bytes;
+        final byte[] targetRenderingAreaBytes = targetRenderingArea.pixels;
 
         final int textureWidth = textureBitmap.width;