public class PrefilteredEnvMapFaceGenerator extends RunnableWithProgress
TODO there is a lot of duplicate code here with the EnvMapUtils.
listener| Constructor and Description |
|---|
PrefilteredEnvMapFaceGenerator(Application app,
int face,
JobProgressListener<java.lang.Integer> listener)
Creates a pem generator for the given face.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
importanceSampleGGX(Vector4f xi,
float a2,
Vector3f store)
Computes GGX half vector in local space
|
void |
run() |
void |
setGenerationParam(TextureCubeMap sourceMap,
int targetMapSize,
EnvMapUtils.FixSeamsMethod fixSeamsMethod,
EnvMapUtils.GenerationType genType,
TextureCubeMap store)
Fills all the generation parameters
|
getProgress, progress, reset, setEndpublic PrefilteredEnvMapFaceGenerator(Application app, int face, JobProgressListener<java.lang.Integer> listener)
app - the Applicationface - the face to generatelistener - to monitor progress (alias created)public void setGenerationParam(TextureCubeMap sourceMap, int targetMapSize, EnvMapUtils.FixSeamsMethod fixSeamsMethod, EnvMapUtils.GenerationType genType, TextureCubeMap store)
sourceMap - the source cube maptargetMapSize - the size of the generated map (width or height in
pixel)fixSeamsMethod - the method used to fix seams as described in
EnvMapUtils.FixSeamsMethodgenType - select Fast or HighQualitystore - The cube map to store the result in.public void run()