X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=sixth-3d.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fsixth%2Fe3d%2Frenderer%2Fraster%2Fshapes%2Fbasic%2FForwardOrientedTexture.java;h=37b43a359adf7e948e8f1e3a7c98b0945df157c2;hp=474f05c6158424dd04c32c8630150e04bee9463b;hb=59baa428fb2d9e7f0fe5423f4cea47f2d6245914;hpb=dcdff57f0bab42387b2e4e215778d9e8efc60221 diff --git a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/ForwardOrientedTexture.java b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/ForwardOrientedTexture.java index 474f05c..37b43a3 100644 --- a/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/ForwardOrientedTexture.java +++ b/src/main/java/eu/svjatoslav/sixth/e3d/renderer/raster/shapes/basic/ForwardOrientedTexture.java @@ -1,5 +1,5 @@ /* - * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu + * Sixth 3D engine. Copyright ©2012-2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu * * This program is free software; you can redistribute it and/or * modify it under the terms of version 3 of the GNU Lesser General Public License @@ -18,8 +18,8 @@ import eu.svjatoslav.sixth.e3d.renderer.raster.texture.TextureBitmap; public class ForwardOrientedTexture extends AbstractCoordinateShape { - public static final double SIZE_MULTIPLIER = 0.005; - public Texture texture; + private static final double SIZE_MULTIPLIER = 0.005; + public final Texture texture; private double scale; public ForwardOrientedTexture(final Point3D point, final 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;