public class ShaderUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static float |
abs(float x) |
static float |
bias(float b,
float x) |
static float |
boxstep(float a,
float b,
float x) |
static int |
c2i(float[] color) |
static float[][] |
calcRotationMatrix(float ax,
float ay,
float az) |
static float |
ceil(float x) |
static float |
clamp(float x,
float a,
float b) |
static int |
floor(float x) |
static float[] |
floor(float[] fs) |
static float |
frac(float f) |
static float |
gain(float g,
float x) |
static float |
gammaCorrection(float gamma,
float x) |
static java.nio.ByteBuffer |
getImageDataFromImage(java.awt.image.BufferedImage bufferedImage) |
static float[] |
i2c(int color) |
static float |
length(float[] v) |
static float |
length(float x,
float y,
float z) |
static float |
max(float a,
float b) |
static float |
min(float a,
float b) |
static java.awt.Color |
mix(java.awt.Color a,
java.awt.Color b,
float f) |
static float[] |
mix(float[] c1,
float[] c2,
float f) |
static float |
mix(float a,
float b,
float f) |
static int |
mix(int a,
int b,
float f) |
static float |
mod(float a,
float b) |
static float[] |
normalize(float[] v) |
static float |
pulse(float a,
float b,
float x) |
static float[] |
rotate(float[] v,
float[][] m) |
static float |
sinValue(float s,
float minFreq,
float maxFreq,
float sWidth) |
static float |
smoothstep(float a,
float b,
float x) |
static float |
spline(float x,
float[] knot) |
static float[] |
spline(float x,
float[][] knots) |
static float |
step(float a,
float x) |
public static final float[] i2c(int color)
public static final int c2i(float[] color)
public static final float mix(float a, float b, float f)
public static final java.awt.Color mix(java.awt.Color a, java.awt.Color b, float f)
public static final int mix(int a, int b, float f)
public static final float[] mix(float[] c1, float[] c2, float f)
public static final float step(float a, float x)
public static final float boxstep(float a, float b, float x)
public static final float pulse(float a, float b, float x)
public static final float clamp(float x, float a, float b)
public static final float min(float a, float b)
public static final float max(float a, float b)
public static final float abs(float x)
public static final float smoothstep(float a, float b, float x)
public static final float mod(float a, float b)
public static final int floor(float x)
public static final float ceil(float x)
public static final float spline(float x, float[] knot)
public static final float[] spline(float x, float[][] knots)
public static final float gammaCorrection(float gamma, float x)
public static final float bias(float b, float x)
public static final float gain(float g, float x)
public static final float sinValue(float s, float minFreq, float maxFreq, float sWidth)
public static final float length(float x, float y, float z)
public static final float[] rotate(float[] v, float[][] m)
public static final float[][] calcRotationMatrix(float ax, float ay, float az)
public static final float[] normalize(float[] v)
public static final float length(float[] v)
public static final java.nio.ByteBuffer getImageDataFromImage(java.awt.image.BufferedImage bufferedImage)
public static float frac(float f)
public static float[] floor(float[] fs)