public final class BumpMap
extends java.lang.Object
Constructor and Description |
---|
BumpMap(java.awt.image.RenderedImage texture,
double surfaceScale,
double scaleX,
double scaleY)
Stores the normals for this bumpMap.
|
Modifier and Type | Method and Description |
---|---|
double[][][] |
getNormalArray(int x,
int y,
int w,
int h) |
double |
getSurfaceScale() |
public BumpMap(java.awt.image.RenderedImage texture, double surfaceScale, double scaleX, double scaleY)
public double getSurfaceScale()
public double[][][] getNormalArray(int x, int y, int w, int h)
x
- x-axis coordinate for which the normal is computedy
- y-axis coordinate for which the normal is computedCopyright © 2022 Apache Software Foundation. All Rights Reserved.