Commit be216534 authored by Romain Pacanowski's avatar Romain Pacanowski

fixed normal shader

parent cb284628
......@@ -28,5 +28,7 @@ void main(void) {
//out_color = vec4(ambient * v_color + blinn(normalize(v_normal),normalize(v_view), lightDir, v_color, spec_color, shininess),1.0);
//out_color = vec4(ambient + blinn(normalize(v_normal),normalize(v_view), lightDir, v_color, spec_color, shininess),1.0);
out_color.xyz = v_normal*vec3(0.5) + vec3(0.5) ;
out_color.xyz = normalize(v_normal)*vec3(0.5) + vec3(0.5) ;
out_color.w = 1.0;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment