Daniel Salvadori 7 лет назад
Родитель
Сommit
3b93189cbb

+ 0 - 1
renderer/shaders/include/morphtarget_vertex.glsl

@@ -1,6 +1,5 @@
 #ifdef MORPHTARGETS
 	vPosition += (MorphPosition{i} - VertexPosition) * morphTargetInfluences[{i}];
-//    vPosition = MorphPosition1;
   #ifdef MORPHTARGETS_NORMAL
 	vNormal += (MorphNormal{i} - VertexNormal) * morphTargetInfluences[{i}];
   #endif

+ 0 - 2
renderer/shaders/include/phong_model.glsl

@@ -112,5 +112,3 @@ void phongModel(vec4 position, vec3 normal, vec3 camDir, vec3 matAmbient, vec3 m
     ambdiff = ambientTotal + MatEmissiveColor + diffuseTotal;
     spec = specularTotal;
 }
-
-

+ 3 - 3
window/glfw.go

@@ -64,9 +64,9 @@ func Glfw() (IWindowManager, error) {
 	glfw.WindowHint(glfw.OpenGLProfile, glfw.OpenGLCoreProfile)
 	glfw.WindowHint(glfw.Samples, 8)
 	// Sets OpenGL forward compatible context only for OSX because it is required for OSX.
-	// When this is set glLineWidth(width) only accepts width=1.0 and generates error
-	// for any other values although the spec says it should ignore non supported widths
-	// and generate error only when width <= 0.
+	// When this is set, glLineWidth(width) only accepts width=1.0 and generates an  error
+	// for any other values although the spec says it should ignore unsupported widths
+	// and generate an error only when width <= 0.
 	if runtime.GOOS == "darwin" {
 		glfw.WindowHint(glfw.OpenGLForwardCompatible, glfw.True)
 	}