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