Trying to setup correctly the projection matrix for all the different cases...

This commit is contained in:
Sam Gateau 2015-02-23 17:06:46 -08:00
parent 04a39275ef
commit 65a3e3618a
2 changed files with 1 additions and 21 deletions

View file

@ -12,25 +12,7 @@
<@def GPU_CONFIG_SLH@>
<@if GLPROFILE == PC_GL @>
<@def VERSION_HEADER #version 410 compatibility
#@>
<@func inputPosition name@>
layout(location = 0) in vec3 <$name$>;
<@endfunc@>
<@func inputNormal name@>
layout(location = 1) in vec3 <$name$>;
<@endfunc@>
<@func inputTexcoord name@>
layout(location = 4) in vec2 <$name$>;
<@endfunc@>
<@func inputColor name@>
layout(location = 4) vec3 <$name$>;
<@endfunc@>
<@def VERSION_HEADER #version 330 compatibility@>
<@elif GLPROFILE == MAC_GL @>
<@def VERSION_HEADER #version 120@>
<@else@>

View file

@ -46,6 +46,4 @@ void main(void) {
gl_FragColor = vec4(color, frag.normalVal.a);
}
gl_FragColor = vec4(vec3(shadowAttenuation), 1.0);
}