UFO: Alien Invasion
Loading...
Searching...
No Matches
bump_fs.glsl
Go to the documentation of this file.
1/**
2 * @file
3 * @brief Bumpmap fragment shader.
4 */
5
6in_qualifier vec3 eyedir;
7
8uniform float BUMP;
9uniform float PARALLAX;
10uniform float HARDNESS;
11uniform float SPECULAR;
12
13vec3 eye;
14
15/**
16 * @brief BumpTexcoord.
17 */
18vec2 BumpTexcoord(in float height) {
19 eye = normalize(eyedir);
20
21 return vec2(height * PARALLAX * 0.04 - 0.02) * eye.xy;
22}