Modifier and Type | Method and Description |
---|---|
void |
Benchmark.imageFill(int x,
int y,
int w,
int h,
Color c,
float alpha) |
void |
Benchmark.imageUpdate(int x,
int y,
int w,
int h,
Color[] data,
float[] alpha) |
Modifier and Type | Method and Description |
---|---|
Color |
ShadingState.diffuse(Color diff)
Computes a plain diffuse response to the current light samples and global
illumination.
|
Color |
ParameterList.getColor(java.lang.String name,
Color defaultValue)
Get the specified color parameter from this list.
|
Color |
LightSample.getDiffuseRadiance()
Get diffuse radiance.
|
Color |
ShadingState.getGlobalRadiance()
Returns the glboal diffuse radiance estimate given by the current
GIEngine if present. |
Color |
GIEngine.getGlobalRadiance(ShadingState state)
This is an optional method for engines that contain a secondary
illumination engine which can return an approximation of the global
radiance in the scene (like a photon map).
|
Color |
ShadingState.getIrradiance(Color diffuseReflectance)
Gets the total irradiance reaching the current point from diffuse
surfaces.
|
Color |
GIEngine.getIrradiance(ShadingState state,
Color diffuseReflectance)
Return the incomming irradiance due to indirect diffuse illumination at
the specified surface point.
|
Color |
Texture.getOpacity(float x,
float y) |
Color |
Shader.getOpacity(ShadingState state)
Returns how much light is blocked by this shader.
|
Color |
Texture.getPixel(float x,
float y)
Gets the color at location (x,y) in the texture.
|
Color |
GlobalPhotonMapInterface.getRadiance(Point3 p,
Vector3 n)
Lookup the global diffuse radiance at the specified surface point.
|
Color |
Shader.getRadiance(ShadingState state)
Gets the radiance for a specified rendering state.
|
Color |
ShadingState.getResult()
Get the result of shading this point
|
Color |
LightSample.getSpecularRadiance()
Get specular radiance.
|
Color |
ShadingCache.lookup(ShadingState state,
Shader shader) |
Color |
ShadingState.occlusion(int samples,
float maxDist)
Simple black and white ambient occlusion.
|
Color |
ShadingState.occlusion(int samples,
float maxDist,
Color bright,
Color dark)
Ambient occlusion routine, returns a value between bright and dark
depending on the amount of geometric occlusion in the scene.
|
Color |
ShadingState.shade()
Run the shader at this surface point.
|
Color |
ShadingState.specularPhong(Color spec,
float power,
int numRays)
Computes a phong specular response to the current light samples and
global illumination.
|
Color |
ShadingState.traceGlossy(Ray r,
int i)
Returns the color obtained by recursively tracing the specified ray.
|
Color |
ShadingState.traceReflection(Ray r,
int i)
Returns the color obtained by recursively tracing the specified ray.
|
Color |
ShadingState.traceRefraction(Ray r,
int i)
Returns the color obtained by recursively tracing the specified ray.
|
Color |
ShadingState.traceShadow(Ray r)
Trace a shadow ray against the scene, and computes the accumulated
opacity along the ray.
|
Color |
ShadingState.traceTransparency()
Trace transparency, this is equivalent to tracing a refraction ray in the
incoming ray direction.
|
Color |
ShadingState.traceTransparentShadow(float oldMaxT) |
Modifier and Type | Method and Description |
---|---|
void |
ShadingCache.add(ShadingState state,
Shader shader,
Color c) |
void |
ParameterList.addColor(java.lang.String name,
Color value)
Add the specified color as a parameter.
|
Color |
ShadingState.diffuse(Color diff)
Computes a plain diffuse response to the current light samples and global
illumination.
|
Color |
ParameterList.getColor(java.lang.String name,
Color defaultValue)
Get the specified color parameter from this list.
|
Color |
ShadingState.getIrradiance(Color diffuseReflectance)
Gets the total irradiance reaching the current point from diffuse
surfaces.
|
Color |
GIEngine.getIrradiance(ShadingState state,
Color diffuseReflectance)
Return the incomming irradiance due to indirect diffuse illumination at
the specified surface point.
|
void |
LightSource.getPhoton(double randX1,
double randY1,
double randX2,
double randY2,
Point3 p,
Vector3 dir,
Color power)
Gets a photon to emit from this light source by setting each of the
arguments.
|
void |
Display.imageFill(int x,
int y,
int w,
int h,
Color c,
float alpha)
Update the current image with a region of flat color.
|
void |
Display.imageUpdate(int x,
int y,
int w,
int h,
Color[] data,
float[] alpha)
Update the current image with a bucket of data.
|
Color |
ShadingState.occlusion(int samples,
float maxDist,
Color bright,
Color dark)
Ambient occlusion routine, returns a value between bright and dark
depending on the amount of geometric occlusion in the scene.
|
void |
Shader.scatterPhoton(ShadingState state,
Color power)
Scatter a photon with the specied power.
|
void |
LightSample.setRadiance(Color d,
Color s)
Set the diffuse and specular radiance emitted by the current light
source.
|
Color |
ShadingState.specularPhong(Color spec,
float power,
int numRays)
Computes a phong specular response to the current light samples and
global illumination.
|
void |
PhotonStore.store(ShadingState state,
Vector3 dir,
Color power,
Color diffuse)
Store the specified photon.
|
void |
ShadingState.storePhoton(Vector3 dir,
Color power,
Color diffuse)
Records a photon at the specified location.
|
void |
ShadingState.traceDiffusePhoton(Ray r,
Color power)
Trace a new photon from the current location.
|
void |
ShadingState.traceReflectionPhoton(Ray r,
Color power)
Trace a new photon from the current location.
|
void |
ShadingState.traceRefractionPhoton(Ray r,
Color power)
Trace a new photon from the current location.
|
Modifier and Type | Method and Description |
---|---|
void |
FastDisplay.imageFill(int x,
int y,
int w,
int h,
Color c,
float alpha) |
void |
FileDisplay.imageFill(int x,
int y,
int w,
int h,
Color c,
float alpha) |
void |
FrameDisplay.imageFill(int x,
int y,
int w,
int h,
Color c,
float alpha) |
void |
ImgPipeDisplay.imageFill(int x,
int y,
int w,
int h,
Color c,
float alpha) |
void |
FastDisplay.imageUpdate(int x,
int y,
int w,
int h,
Color[] data,
float[] alpha) |
void |
FileDisplay.imageUpdate(int x,
int y,
int w,
int h,
Color[] data,
float[] alpha) |
void |
FrameDisplay.imageUpdate(int x,
int y,
int w,
int h,
Color[] data,
float[] alpha) |
void |
ImgPipeDisplay.imageUpdate(int x,
int y,
int w,
int h,
Color[] data,
float[] alpha) |
Modifier and Type | Method and Description |
---|---|
Color |
PathTracingGIEngine.getGlobalRadiance(ShadingState state) |
Color |
AmbientOcclusionGIEngine.getGlobalRadiance(ShadingState state) |
Color |
IrradianceCacheGIEngine.getGlobalRadiance(ShadingState state) |
Color |
InstantGI.getGlobalRadiance(ShadingState state) |
Color |
FakeGIEngine.getGlobalRadiance(ShadingState state) |
Color |
PathTracingGIEngine.getIrradiance(ShadingState state,
Color diffuseReflectance) |
Color |
AmbientOcclusionGIEngine.getIrradiance(ShadingState state,
Color diffuseReflectance) |
Color |
IrradianceCacheGIEngine.getIrradiance(ShadingState state,
Color diffuseReflectance) |
Color |
InstantGI.getIrradiance(ShadingState state,
Color diffuseReflectance) |
Color |
FakeGIEngine.getIrradiance(ShadingState state,
Color diffuseReflectance) |
Modifier and Type | Method and Description |
---|---|
Color |
PathTracingGIEngine.getIrradiance(ShadingState state,
Color diffuseReflectance) |
Color |
AmbientOcclusionGIEngine.getIrradiance(ShadingState state,
Color diffuseReflectance) |
Color |
IrradianceCacheGIEngine.getIrradiance(ShadingState state,
Color diffuseReflectance) |
Color |
InstantGI.getIrradiance(ShadingState state,
Color diffuseReflectance) |
Color |
FakeGIEngine.getIrradiance(ShadingState state,
Color diffuseReflectance) |
Modifier and Type | Method and Description |
---|---|
Color |
SunSkyLight.getOpacity(ShadingState state) |
Color |
TriangleMeshLight.getOpacity(ShadingState state) |
Color |
ImageBasedLight.getOpacity(ShadingState state) |
Color |
SphereLight.getOpacity(ShadingState state) |
Color |
SunSkyLight.getRadiance(ShadingState state) |
Color |
TriangleMeshLight.getRadiance(ShadingState state) |
Color |
ImageBasedLight.getRadiance(ShadingState state) |
Color |
SphereLight.getRadiance(ShadingState state) |
Color |
SunSkyLight.getSunColor() |
Modifier and Type | Method and Description |
---|---|
void |
PointLight.getPhoton(double randX1,
double randY1,
double randX2,
double randY2,
Point3 p,
Vector3 dir,
Color power) |
void |
SunSkyLight.getPhoton(double randX1,
double randY1,
double randX2,
double randY2,
Point3 p,
Vector3 dir,
Color power) |
void |
TriangleMeshLight.getPhoton(double randX1,
double randY1,
double randX2,
double randY2,
Point3 p,
Vector3 dir,
Color power) |
void |
DirectionalSpotlight.getPhoton(double randX1,
double randY1,
double randX2,
double randY2,
Point3 p,
Vector3 dir,
Color power) |
void |
ImageBasedLight.getPhoton(double randX1,
double randY1,
double randX2,
double randY2,
Point3 p,
Vector3 dir,
Color power) |
void |
SphereLight.getPhoton(double randX1,
double randY1,
double randX2,
double randY2,
Point3 p,
Vector3 dir,
Color power) |
void |
SunSkyLight.scatterPhoton(ShadingState state,
Color power) |
void |
TriangleMeshLight.scatterPhoton(ShadingState state,
Color power) |
void |
ImageBasedLight.scatterPhoton(ShadingState state,
Color power) |
void |
SphereLight.scatterPhoton(ShadingState state,
Color power) |
Modifier and Type | Method and Description |
---|---|
protected Color |
SCAsciiParser.parseColor() |
Modifier and Type | Method and Description |
---|---|
Color |
GlobalPhotonMap.getRadiance(Point3 p,
Vector3 n) |
Color |
GridPhotonMap.getRadiance(Point3 p,
Vector3 n) |
Modifier and Type | Method and Description |
---|---|
void |
GlobalPhotonMap.store(ShadingState state,
Vector3 dir,
Color power,
Color diffuse) |
void |
CausticPhotonMap.store(ShadingState state,
Vector3 dir,
Color power,
Color diffuse) |
void |
GridPhotonMap.store(ShadingState state,
Vector3 dir,
Color power,
Color diffuse) |
Modifier and Type | Method and Description |
---|---|
Color |
Hair.getOpacity(ShadingState state) |
Color |
CornellBox.getOpacity(ShadingState state) |
Color |
Hair.getRadiance(ShadingState state) |
Color |
CornellBox.getRadiance(ShadingState state) |
Modifier and Type | Method and Description |
---|---|
void |
CornellBox.getPhoton(double randX1,
double randY1,
double randX2,
double randY2,
Point3 p,
Vector3 dir,
Color power) |
void |
Hair.scatterPhoton(ShadingState state,
Color power) |
void |
CornellBox.scatterPhoton(ShadingState state,
Color power) |
Modifier and Type | Method and Description |
---|---|
Color |
AmbientOcclusionShader.getBrightColor(ShadingState state) |
Color |
TexturedAmbientOcclusionShader.getBrightColor(ShadingState state) |
protected Color |
AnisotropicWardShader.getDiffuse(ShadingState state) |
Color |
ShinyDiffuseShader.getDiffuse(ShadingState state) |
Color |
DiffuseShader.getDiffuse(ShadingState state) |
Color |
TexturedPhongShader.getDiffuse(ShadingState state) |
Color |
UberShader.getDiffuse(ShadingState state) |
protected Color |
PhongShader.getDiffuse(ShadingState state) |
Color |
TexturedWardShader.getDiffuse(ShadingState state) |
Color |
TexturedDiffuseShader.getDiffuse(ShadingState state) |
Color |
TexturedShinyDiffuseShader.getDiffuse(ShadingState state) |
Color |
WireframeShader.getFillColor(ShadingState state) |
Color |
WireframeShader.getLineColor(ShadingState state) |
Color |
AnisotropicWardShader.getOpacity(ShadingState state) |
Color |
ViewCausticsShader.getOpacity(ShadingState state) |
Color |
ShinyDiffuseShader.getOpacity(ShadingState state) |
Color |
ConstantShader.getOpacity(ShadingState state) |
Color |
MirrorShader.getOpacity(ShadingState state) |
Color |
AmbientOcclusionShader.getOpacity(ShadingState state) |
Color |
ViewGlobalPhotonsShader.getOpacity(ShadingState state) |
Color |
PrimIDShader.getOpacity(ShadingState state) |
Color |
DiffuseShader.getOpacity(ShadingState state) |
Color |
TexturedPhongShader.getOpacity(ShadingState state) |
Color |
SimpleShader.getOpacity(ShadingState state) |
Color |
QuickGrayShader.getOpacity(ShadingState state) |
Color |
UVShader.getOpacity(ShadingState state) |
Color |
GlassShader.getOpacity(ShadingState state) |
Color |
UberShader.getOpacity(ShadingState state) |
Color |
PhongShader.getOpacity(ShadingState state) |
Color |
ViewIrradianceShader.getOpacity(ShadingState state) |
Color |
IDShader.getOpacity(ShadingState state) |
Color |
TexturedWardShader.getOpacity(ShadingState state) |
Color |
TexturedDiffuseShader.getOpacity(ShadingState state) |
Color |
WireframeShader.getOpacity(ShadingState state) |
Color |
TexturedShinyDiffuseShader.getOpacity(ShadingState state) |
Color |
NormalShader.getOpacity(ShadingState state) |
Color |
AnisotropicWardShader.getRadiance(ShadingState state) |
Color |
ViewCausticsShader.getRadiance(ShadingState state) |
Color |
ShinyDiffuseShader.getRadiance(ShadingState state) |
Color |
ConstantShader.getRadiance(ShadingState state) |
Color |
MirrorShader.getRadiance(ShadingState state) |
Color |
AmbientOcclusionShader.getRadiance(ShadingState state) |
Color |
ViewGlobalPhotonsShader.getRadiance(ShadingState state) |
Color |
PrimIDShader.getRadiance(ShadingState state) |
Color |
DiffuseShader.getRadiance(ShadingState state) |
Color |
TexturedPhongShader.getRadiance(ShadingState state) |
Color |
SimpleShader.getRadiance(ShadingState state) |
Color |
QuickGrayShader.getRadiance(ShadingState state) |
Color |
UVShader.getRadiance(ShadingState state) |
Color |
GlassShader.getRadiance(ShadingState state) |
Color |
UberShader.getRadiance(ShadingState state) |
Color |
PhongShader.getRadiance(ShadingState state) |
Color |
ViewIrradianceShader.getRadiance(ShadingState state) |
Color |
IDShader.getRadiance(ShadingState state) |
Color |
TexturedDiffuseShader.getRadiance(ShadingState state) |
Color |
WireframeShader.getRadiance(ShadingState state) |
Color |
TexturedShinyDiffuseShader.getRadiance(ShadingState state) |
Color |
NormalShader.getRadiance(ShadingState state) |
Color |
UberShader.getSpecular(ShadingState state) |
Modifier and Type | Method and Description |
---|---|
void |
AnisotropicWardShader.scatterPhoton(ShadingState state,
Color power) |
void |
ViewCausticsShader.scatterPhoton(ShadingState state,
Color power) |
void |
ShinyDiffuseShader.scatterPhoton(ShadingState state,
Color power) |
void |
ConstantShader.scatterPhoton(ShadingState state,
Color power) |
void |
MirrorShader.scatterPhoton(ShadingState state,
Color power) |
void |
AmbientOcclusionShader.scatterPhoton(ShadingState state,
Color power) |
void |
ViewGlobalPhotonsShader.scatterPhoton(ShadingState state,
Color power) |
void |
PrimIDShader.scatterPhoton(ShadingState state,
Color power) |
void |
DiffuseShader.scatterPhoton(ShadingState state,
Color power) |
void |
SimpleShader.scatterPhoton(ShadingState state,
Color power) |
void |
QuickGrayShader.scatterPhoton(ShadingState state,
Color power) |
void |
UVShader.scatterPhoton(ShadingState state,
Color power) |
void |
GlassShader.scatterPhoton(ShadingState state,
Color power) |
void |
UberShader.scatterPhoton(ShadingState state,
Color power) |
void |
PhongShader.scatterPhoton(ShadingState state,
Color power) |
void |
ViewIrradianceShader.scatterPhoton(ShadingState state,
Color power) |
void |
IDShader.scatterPhoton(ShadingState state,
Color power) |
void |
WireframeShader.scatterPhoton(ShadingState state,
Color power) |
void |
NormalShader.scatterPhoton(ShadingState state,
Color power) |
Constructor and Description |
---|
AmbientOcclusionShader(Color c,
float d) |
Modifier and Type | Field and Description |
---|---|
static Color |
Color.BLACK |
static Color |
Color.BLUE |
static Color |
Color.CYAN |
static Color |
Color.GRAY |
static Color |
Color.GREEN |
static Color |
Color.MAGENTA |
static Color |
Color.RED |
static Color |
Color.WHITE |
static Color |
Color.YELLOW |
Modifier and Type | Method and Description |
---|---|
Color |
Color.add(Color c) |
static Color |
Color.add(Color c1,
Color c2) |
static Color |
Color.add(Color c1,
Color c2,
Color dest) |
static Color |
Color.black() |
static Color |
Color.blend(Color c1,
Color c2,
Color b) |
static Color |
Color.blend(Color c1,
Color c2,
Color b,
Color dest) |
static Color |
Color.blend(Color c1,
Color c2,
float b) |
static Color |
Color.blend(Color c1,
Color c2,
float b,
Color dest) |
Color |
Color.clamp(float min,
float max) |
Color |
Color.constrainRGB() |
Color |
RGBSpace.convertXYZtoRGB(float X,
float Y,
float Z) |
Color |
RGBSpace.convertXYZtoRGB(XYZColor c) |
Color |
Color.copy() |
static Color |
ColorFactory.createColor(java.lang.String colorspace,
float... data)
Creates a color value in the renderer's internal color space from a
string (representing the color space name) and an array of floating point
values.
|
Color |
Color.div(Color c) |
static Color |
Color.div(Color c1,
Color c2) |
static Color |
Color.div(Color c1,
Color c2,
Color dest) |
Color |
Color.exp() |
Color |
Color.madd(Color s,
Color c) |
Color |
Color.madd(float s,
Color c) |
Color |
Color.mul(Color c) |
static Color |
Color.mul(Color c1,
Color c2) |
static Color |
Color.mul(Color c1,
Color c2,
Color dest) |
Color |
Color.mul(float s) |
static Color |
Color.mul(float s,
Color c) |
static Color |
Color.mul(float s,
Color c,
Color dest) |
Color |
Color.opposite() |
abstract Color |
Bitmap.readColor(int x,
int y) |
Color |
Color.set(Color c) |
Color |
Color.set(float r,
float g,
float b) |
Color |
Color.setRGB(int rgb) |
Color |
Color.setRGBE(int rgbe) |
Color |
Color.sub(Color c) |
static Color |
Color.sub(Color c1,
Color c2) |
static Color |
Color.sub(Color c1,
Color c2,
Color dest) |
Color |
Color.toLinear() |
Color |
Color.toNonLinear() |
static Color[] |
ColorEncoder.unlinearize(Color[] color)
Moves the colors in the specified array to non-linear space.
|
static Color[] |
ColorEncoder.unpremult(Color[] color,
float[] alpha)
Undoes the premultiplication of the specified color array.
|
static Color |
Color.white() |
Modifier and Type | Method and Description |
---|---|
Color |
Color.add(Color c) |
static Color |
Color.add(Color c1,
Color c2) |
static Color |
Color.add(Color c1,
Color c2,
Color dest) |
static Color |
Color.blend(Color c1,
Color c2,
Color b) |
static Color |
Color.blend(Color c1,
Color c2,
Color b,
Color dest) |
static Color |
Color.blend(Color c1,
Color c2,
float b) |
static Color |
Color.blend(Color c1,
Color c2,
float b,
Color dest) |
XYZColor |
RGBSpace.convertRGBtoXYZ(Color c) |
Color |
Color.div(Color c) |
static Color |
Color.div(Color c1,
Color c2) |
static Color |
Color.div(Color c1,
Color c2,
Color dest) |
static int[] |
ColorEncoder.encodeRGBE(Color[] color)
Encode the specified colors using Ward's RGBE technique.
|
static boolean |
Color.hasContrast(Color c1,
Color c2,
float thresh) |
Color |
Color.madd(Color s,
Color c) |
Color |
Color.madd(float s,
Color c) |
Color |
Color.mul(Color c) |
static Color |
Color.mul(Color c1,
Color c2) |
static Color |
Color.mul(Color c1,
Color c2,
Color dest) |
static Color |
Color.mul(float s,
Color c) |
static Color |
Color.mul(float s,
Color c,
Color dest) |
static byte[] |
ColorEncoder.quantizeRGB8(Color[] color)
Quantize the specified colors to 8-bit RGB format.
|
static byte[] |
ColorEncoder.quantizeRGBA8(Color[] color,
float[] alpha)
Quantize the specified colors to 8-bit RGBA format.
|
Color |
Color.set(Color c) |
Color |
Color.sub(Color c) |
static Color |
Color.sub(Color c1,
Color c2) |
static Color |
Color.sub(Color c1,
Color c2,
Color dest) |
static Color[] |
ColorEncoder.unlinearize(Color[] color)
Moves the colors in the specified array to non-linear space.
|
static Color[] |
ColorEncoder.unpremult(Color[] color,
float[] alpha)
Undoes the premultiplication of the specified color array.
|
void |
BitmapWriter.writeTile(int x,
int y,
int w,
int h,
Color[] color,
float[] alpha)
Write a tile of data.
|
Constructor and Description |
---|
Color(Color c) |
Modifier and Type | Method and Description |
---|---|
Color |
BitmapXYZ.readColor(int x,
int y) |
Color |
BitmapG8.readColor(int x,
int y) |
Color |
BitmapGA8.readColor(int x,
int y) |
Color |
GenericBitmap.readColor(int x,
int y) |
Color |
BitmapRGBE.readColor(int x,
int y) |
Color |
BitmapRGB8.readColor(int x,
int y) |
Color |
BitmapRGBA8.readColor(int x,
int y) |
Color |
BitmapBlack.readColor(int x,
int y) |
Modifier and Type | Method and Description |
---|---|
void |
GenericBitmap.writePixel(int x,
int y,
Color c,
float a) |
Modifier and Type | Method and Description |
---|---|
void |
PNGBitmapWriter.writeTile(int x,
int y,
int w,
int h,
Color[] color,
float[] alpha) |
void |
HDRBitmapWriter.writeTile(int x,
int y,
int w,
int h,
Color[] color,
float[] alpha) |
void |
EXRBitmapWriter.writeTile(int x,
int y,
int w,
int h,
Color[] color,
float[] alpha) |
void |
IGIBitmapWriter.writeTile(int x,
int y,
int w,
int h,
Color[] color,
float[] alpha) |
void |
TGABitmapWriter.writeTile(int x,
int y,
int w,
int h,
Color[] color,
float[] alpha) |
Modifier and Type | Method and Description |
---|---|
void |
ImagePanel.imageFill(int x,
int y,
int w,
int h,
Color c,
float alpha) |
void |
ImagePanel.imageUpdate(int x,
int y,
int w,
int h,
Color[] data,
float[] alpha) |