Skip to content

Instantly share code, notes, and snippets.

View Kangz's full-sized avatar

Corentin Wallez Kangz

View GitHub Profile
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: Parallels Inc
server glx version string: 1.4
server glx extensions:
GLX_EXT_texture_from_pixmap, GLX_SGIX_fbconfig
client glx vendor string: Parallels Inc
client glx version string: 1.4
client glx extensions:
diff --git a/main/glsl/vertexLighting_DBS_entity_fp.glsl b/main/glsl/vertexLighting_DBS_entity_fp.glsl
index 1f8708d..058f89e 100644
--- a/main/glsl/vertexLighting_DBS_entity_fp.glsl
+++ b/main/glsl/vertexLighting_DBS_entity_fp.glsl
@@ -140,7 +140,9 @@ void main()
#endif // USE_PARALLAX_MAPPING
// compute normal in world space from normalmap
- vec3 N = normalize(tangentToWorldMatrix * (2.0 * (texture2D(u_NormalMap, texNormal).xyz - 0.5)));
+ vec2 Nxy = texture2D(u_NormalMap, texNormal).xy;