public class Texture
extends java.lang.Object
shaders
.Modifier and Type | Method and Description |
---|---|
Bitmap |
getBitmap() |
Vector3 |
getBump(float x,
float y,
OrthoNormalBasis basis,
float scale) |
Vector3 |
getNormal(float x,
float y,
OrthoNormalBasis basis) |
Color |
getOpacity(float x,
float y) |
float |
getOpacityAlpha(float x,
float y) |
Color |
getPixel(float x,
float y)
Gets the color at location (x,y) in the texture.
|
boolean |
isTransparent() |
public Bitmap getBitmap()
public Color getPixel(float x, float y)
x
- x coordinate into the texturey
- y coordinate into the texturepublic Color getOpacity(float x, float y)
public float getOpacityAlpha(float x, float y)
public boolean isTransparent()
public Vector3 getNormal(float x, float y, OrthoNormalBasis basis)
public Vector3 getBump(float x, float y, OrthoNormalBasis basis, float scale)