public interface Shader
Modifier and Type | Method and Description |
---|---|
void |
adjustRgba(float[] rgba,
float value)
Modifies the elements of an sRGB colour definition array in place
according to a supplied parameter.
|
String |
getName()
Returns a name for this shader.
|
boolean |
isAbsolute()
Indicates whether the shading performed by this shader is dependent
on the input colour or not.
|
void adjustRgba(float[] rgba, float value)
rgba
array has 4-elements giving
red, green blue, alpha values respetively, each element in the
range 0 to 1. The value
parameter is a value in the
range 0 to 1 which parameterises how the rgba
array is to be modified.rgba
- 4-element (red,green,blue,alpha) arrayvalue
- adjustment parameter in the range 0..1boolean isAbsolute()
adjustRgba(float[], float)
depends on the input colourString getName()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.