Debian Codegraph @

shaders/src/common_shading.fs

raw
1 // These variables should be in a struct but some GPU drivers ignore the
2 // precision qualifier on individual struct members
3 highp mat3 shading_tangentToWorld; // TBN matrix
4 highp vec3 shading_position; // position of the fragment in world space
5 vec3 shading_view; // normalized vector from the fragment to the eye
6 vec3 shading_normal; // normalized transformed normal, in world space
7 vec3 shading_geometricNormal; // normalized geometric normal, in world space
8 vec3 shading_reflected; // reflection of view about normal
9 float shading_NoV; // dot(normal, view), always strictly >= MIN_N_DOT_V
10
11 #if defined(MATERIAL_HAS_BENT_NORMAL)
12 vec3 shading_bentNormal; // normalized transformed normal, in world space
13 #endif
14
15 #if defined(MATERIAL_HAS_CLEAR_COAT)
16 vec3 shading_clearCoatNormal; // normalized clear coat layer normal, in world space
17 #endif
18
19 highp vec2 shading_normalizedViewportCoord;