forked from teamnwah/openmw-tes3coop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
292 B
GLSL
9 lines
292 B
GLSL
#define PARALLAX_SCALE 0.04
|
|
#define PARALLAX_BIAS -0.02
|
|
|
|
vec2 getParallaxOffset(vec3 eyeDir, mat3 tbnTranspose, float height, float flipY)
|
|
{
|
|
vec3 TSeyeDir = normalize(eyeDir * tbnTranspose);
|
|
return vec2(TSeyeDir.x, TSeyeDir.y * flipY) * ( height * PARALLAX_SCALE + PARALLAX_BIAS );
|
|
}
|