Package org.boxutil.util.lut
Class ShadingLUT.IsotropicLTCs
java.lang.Object
org.boxutil.util.lut.ShadingLUT.IsotropicLTCs
- Enclosing class:
- ShadingLUT
-
Method Summary
Modifier and TypeMethodDescriptionstatic intgenLTCMagnitude(boolean useTextureStorage) OpenGL 3.0+static int[]genLTCMagnitudeSplit(boolean useTextureStorage) OpenGL 3.0+static intgenLTCMatrix(boolean useTextureStorage) OpenGL 3.0+
-
Method Details
-
genLTCMatrix
public static int genLTCMatrix(boolean useTextureStorage) OpenGL 3.0+The isotropic LTC matrix 2D texture, 64*64 vec4 layout.
Build for the
roughness, sqrt(1.0f - NdotV)parameterization.- Returns:
- InvMatrix(m[0].x, m[0].z, m[2].x, m[2].z);
-
genLTCMagnitudeSplit
public static int[] genLTCMagnitudeSplit(boolean useTextureStorage) OpenGL 3.0+The isotropic LTC magnitude 2D texture, 64*64 vec2&float layout.
- Returns:
- int[] = {Integral(GGX norm, fresnel), Clipping(sphere for horizon-clipping)};
-
genLTCMagnitude
public static int genLTCMagnitude(boolean useTextureStorage) OpenGL 3.0+The isotropic LTC magnitude 2D texture, 64*64 vec3 layout.
- Returns:
- Magnitude(GGX norm, fresnel, sphere for horizon-clipping);
-