Package team.lodestar.lodestone.helpers
Class TextureHelper
java.lang.Object
team.lodestar.lodestone.helpers.TextureHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBufferconvertTextureAtlasToVolume(ByteBuffer textureAtlas, int width, int height, int xSlices, int ySlices, int channels, int[] resultSize) Converts a texture atlas to a 3D texture volumestatic voidvalidateTextureAtlasSize(int width, int height, int xSlices, int ySlices)
-
Constructor Details
-
TextureHelper
public TextureHelper()
-
-
Method Details
-
convertTextureAtlasToVolume
public static ByteBuffer convertTextureAtlasToVolume(ByteBuffer textureAtlas, int width, int height, int xSlices, int ySlices, int channels, int[] resultSize) Converts a texture atlas to a 3D texture volume- Parameters:
textureAtlas- the texture atlaswidth- the width of the texture atlasheight- the height of the texture atlasxSlices- the number of slices in the x directionySlices- the number of slices in the y direction- Returns:
- the 3D texture volume
-
validateTextureAtlasSize
public static void validateTextureAtlasSize(int width, int height, int xSlices, int ySlices)
-