czm_materialInput
Used as input to every material's czm_getMaterial function.
Properties:
Name | Type | Description |
---|---|---|
s |
float | 1D texture coordinates. |
st |
vec2 | 2D texture coordinates. |
str |
vec3 | 3D texture coordinates. |
normalEC |
vec3 | Unperturbed surface normal in eye coordinates. |
tangentToEyeMatrix |
mat3 | Matrix for converting a tangent space normal to eye space. |
positionToEyeEC |
vec3 | Vector from the fragment to the eye in eye coordinates. The magnitude is the distance in meters from the fragment to the eye. |