mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 14:03:17 +02:00
Trying to setup correctly the projection matrix for all the different cases...
This commit is contained in:
parent
04a39275ef
commit
65a3e3618a
2 changed files with 1 additions and 21 deletions
|
@ -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@>
|
||||
|
|
|
@ -46,6 +46,4 @@ void main(void) {
|
|||
|
||||
gl_FragColor = vec4(color, frag.normalVal.a);
|
||||
}
|
||||
|
||||
gl_FragColor = vec4(vec3(shadowAttenuation), 1.0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue