ShaderConstants Class |
Namespace: NeoAxis
public static class ShaderConstants
The ShaderConstants type exposes the following members.
| Name | Description | |
|---|---|---|
| CameraExposure | ||
| CameraPosition | ||
| Color0 |
Gets color 0 of the vertex or of the fragment. Works only in vertex and fragment shaders.
| |
| DisplacementMaxSteps | ||
| DisplacementScale | ||
| EmissiveMaterialsFactor | ||
| EngineTime |
Gets the engine time.
| |
| FragmentCoordinates |
Gets the window-relative coordinates of the current fragment.
| |
| FragmentWorldNormal |
Gets world normal of the fragment. Works only in fragment shaders.
| |
| FragmentWorldPosition |
Gets world position of the fragment. Works only in fragment shaders.
| |
| InstanceParameter1 |
Gets material instance parameter 1.
| |
| InstanceParameter2 |
Gets material instance parameter 2.
| |
| IsFrontFace |
Indicates whether a primitive is front or back facing. Works only in fragment shaders.
| |
| PrecipitationFallen | ||
| PrecipitationFalling | ||
| ProvideColorDepthTextureCopy | ||
| RemoveTextureTiling | ||
| ShadowObjectVisibilityDistanceFactor |
Gets the multiplier of shadow visibility distance depending of object visibility distance.
| |
| Temparature | ||
| TexCoord0 |
Gets texture coordinate 0 of the vertex or of the fragment. Works only in vertex and fragment shaders.
| |
| TexCoord0BeforeDisplacement |
Gets texture coordinate 0 of the fragment before displacement. Works only in fragment shaders.
| |
| TexCoord1 |
Gets texture coordinate 1 of the vertex or of the fragment. Works only in vertex and fragment shaders.
| |
| TexCoord1BeforeDisplacement |
Gets texture coordinate 1 of the fragment before displacement. Works only in fragment shaders.
| |
| TexCoord2 |
Gets texture coordinate 2 of the vertex or of the fragment. Works only in vertex and fragment shaders.
| |
| TexCoord2BeforeDisplacement |
Gets texture coordinate 2 of the fragment before displacement. Works only in fragment shaders.
| |
| TimeOfDay | ||
| UnwrappedUV |
Gets texture coordinate unwrapped UV of the vertex or of the fragment. Works only in vertex and fragment shaders.
| |
| UnwrappedUVBeforeDisplacement |
Gets texture coordinate unwrapped UV of the fragment before displacement. Works only in fragment shaders.
| |
| VertexNormal |
Gets normal of a vertex. Works only in vertex shaders.
| |
| VertexPosition |
Gets position of a vertex. Works only in vertex shaders.
| |
| VertexTangent |
Gets tangent vector of a vertex. Works only in vertex shaders.
| |
| ViewportOwnerCameraDirection | ||
| ViewportOwnerCameraPosition | ||
| ViewportOwnerCameraUp | ||
| ViewportOwnerDebugMode | ||
| ViewportOwnerFarClipDistance | ||
| ViewportOwnerFieldOfView | ||
| ViewportOwnerNearClipDistance | ||
| ViewportOwnerShadowFarDistance | ||
| ViewportSize | ||
| WindSpeed |
Gets the wind speed vector of the scene.
| |
| WorldMatrix |
Gets world matrix. Works only in vertex shaders.
|