public interface R2SurfaceShaderBasicReflectiveParametersType extends R2SurfaceShaderBasicParametersValuesType
| Modifier and Type | Method and Description |
|---|---|
default com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> |
albedoColor()
The base albedo color for the surface.
|
default float |
albedoMix()
A specification of the mix value between the albedo color and texture.
|
default R2Texture2DUsableType |
albedoTexture()
An albedo map which is used to modulate the value of
R2SurfaceShaderBasicParametersValuesType.albedoColor(). |
default float |
alphaDiscardThreshold()
The alpha discard threshold specifies a lower bound on the opacity of
surface pixels.
|
default float |
emission()
The emission value for the surface, in the range
[0.0, 1.0]. |
default R2Texture2DUsableType |
emissionTexture()
An emission map which is used to modulate the value of
R2SurfaceShaderBasicParametersValuesType.emission(). |
default float |
environmentMix()
The linear mix between the surface's albedo and calculated
reflection values.
|
default R2TextureCubeUsableType |
environmentTexture()
An environment map used to simulate reflections on the rendered surface.
|
default R2Texture2DUsableType |
normalTexture()
A normal map used to peturb normal vectors for the surface.
|
default com.io7m.jtensors.parameterized.PVectorI3F<R2SpaceRGBType> |
specularColor()
The base specular color for the surface.
|
default float |
specularExponent()
The specular exponent.
|
default R2Texture2DUsableType |
specularTexture()
A specular map which is used to modulate the value of
R2SurfaceShaderBasicParametersValuesType.specularColor(). |
R2TextureDefaultsType |
textureDefaults() |
R2TextureDefaultsType textureDefaults()
textureDefaults in interface R2SurfaceShaderBasicParametersValuesTypedefault com.io7m.jtensors.parameterized.PVectorI4F<R2SpaceRGBAType> albedoColor()
R2SurfaceShaderBasicParametersValuesTypeThe base albedo color for the surface. This value is mixed with values
sampled from R2SurfaceShaderBasicParametersValuesType.albedoTexture() based on R2SurfaceShaderBasicParametersValuesType.albedoMix().
albedoColor in interface R2SurfaceShaderBasicParametersValuesTypeR2SurfaceShaderBasicParametersValuesType.albedoTexture(),
R2SurfaceShaderBasicParametersValuesType.albedoMix()default com.io7m.jtensors.parameterized.PVectorI3F<R2SpaceRGBType> specularColor()
R2SurfaceShaderBasicParametersValuesTypeThe base specular color for the surface. This essentially encodes both the intensity and color of specular highlights for the surface.
specularColor in interface R2SurfaceShaderBasicParametersValuesTypedefault float emission()
R2SurfaceShaderBasicParametersValuesTypeThe emission value for the surface, in the range [0.0, 1.0].
The value is typically processed by filters to give surfaces the appearance
of emitting light.
emission in interface R2SurfaceShaderBasicParametersValuesTypedefault R2Texture2DUsableType emissionTexture()
R2SurfaceShaderBasicParametersValuesTypeAn emission map which is used to modulate the value of R2SurfaceShaderBasicParametersValuesType.emission(). Specifically, values sampled from the map are multiplied
by R2SurfaceShaderBasicParametersValuesType.emission() to give per-pixel control of the emission value.
emissionTexture in interface R2SurfaceShaderBasicParametersValuesTypedefault R2Texture2DUsableType albedoTexture()
R2SurfaceShaderBasicParametersValuesTypeAn albedo map which is used to modulate the value of R2SurfaceShaderBasicParametersValuesType.albedoColor(). Specifically, values sampled from the map are linearly
mixed with R2SurfaceShaderBasicParametersValuesType.albedoColor() based on R2SurfaceShaderBasicParametersValuesType.albedoMix(). The alpha
channel of the map is also used so that a texture with transparent sections
will show the underlying R2SurfaceShaderBasicParametersValuesType.albedoColor() even when the texture is
fully mixed (i.e. R2SurfaceShaderBasicParametersValuesType.albedoMix() == 1.0).
albedoTexture in interface R2SurfaceShaderBasicParametersValuesTypedefault float albedoMix()
R2SurfaceShaderBasicParametersValuesTypeA specification of the mix value between the albedo color and texture.
If 0.0, the albedo of the surface will be R2SurfaceShaderBasicParametersValuesType.albedoColor().
If 1.0, the albedo of the surface will be a value sampled from
R2SurfaceShaderBasicParametersValuesType.albedoTexture(). Other values in the range [0.0, 1.0] will
linearly mix between the two extremes.
albedoMix in interface R2SurfaceShaderBasicParametersValuesTypedefault R2Texture2DUsableType specularTexture()
R2SurfaceShaderBasicParametersValuesTypeA specular map which is used to modulate the value of R2SurfaceShaderBasicParametersValuesType.specularColor(). Specifically, values sampled from the map are multiplied
by R2SurfaceShaderBasicParametersValuesType.specularColor() to give per-pixel control of specular intensity
and color.
specularTexture in interface R2SurfaceShaderBasicParametersValuesTypedefault float specularExponent()
R2SurfaceShaderBasicParametersValuesTypeThe specular exponent. This is a value in the range [0.0, 256.0]
and is used directly as the exponent term.
specularExponent in interface R2SurfaceShaderBasicParametersValuesTypedefault R2Texture2DUsableType normalTexture()
R2SurfaceShaderBasicParametersValuesTypeA normal map used to peturb normal vectors for the surface. The texture
is expected to contain RGB-encoded vectors such that [0.5, 0.5,
1.0] represents the "neutral" tangent-space [0.0, 0.0, 1.0]
vector.
A map containing entirely [0.5, 0.5, 1.0] values will have no
visible effect on the surface.
normalTexture in interface R2SurfaceShaderBasicParametersValuesTypedefault float alphaDiscardThreshold()
R2SurfaceShaderBasicParametersValuesTypeThe alpha discard threshold specifies a lower bound on the opacity of
surface pixels. For any given surface pixel, if the opacity of the
calculated albedo is less than the R2SurfaceShaderBasicParametersValuesType.alphaDiscardThreshold(),
then the pixel is simply discarded; the pixel is not written to the
current geometry buffer. This allows for otherwise opaque surfaces
to have fully transparent sections.
alphaDiscardThreshold in interface R2SurfaceShaderBasicParametersValuesType[0.0, 1.0]default R2TextureCubeUsableType environmentTexture()
An environment map used to simulate reflections on the rendered surface.
The resulting surface appearance is a linear mix between the albedo
and the reflection values sampled from the environment map, based on environmentMix().
albedoMix()default float environmentMix()
0.0 specifies that the appearance
of the surface will be entirely defined by the albedo. A value of
1.0 specifies that the appearance of the surface will be entirely
defined by the environment reflection.[0.0, 1.0]environmentTexture()Copyright © 2016 <code@io7m.com> http://io7m.com