Browse Source

Shaders: minor code reordering.

pull/268/head
Vladimír Vondruš 8 years ago
parent
commit
6885f0647b
  1. 36
      src/Magnum/Shaders/Phong.frag

36
src/Magnum/Shaders/Phong.frag

@ -33,24 +33,6 @@
#define const
#endif
#ifdef EXPLICIT_UNIFORM_LOCATION
layout(location = 7)
#endif
uniform lowp vec4 lightColor
#ifndef GL_ES
= vec4(1.0)
#endif
;
#ifdef EXPLICIT_UNIFORM_LOCATION
layout(location = 8)
#endif
uniform mediump float shininess
#ifndef GL_ES
= 80.0
#endif
;
#ifdef AMBIENT_TEXTURE
#ifdef EXPLICIT_TEXTURE_LAYER
layout(binding = 0)
@ -103,6 +85,24 @@ uniform lowp vec4 specularColor
#endif
;
#ifdef EXPLICIT_UNIFORM_LOCATION
layout(location = 7)
#endif
uniform lowp vec4 lightColor
#ifndef GL_ES
= vec4(1.0)
#endif
;
#ifdef EXPLICIT_UNIFORM_LOCATION
layout(location = 8)
#endif
uniform mediump float shininess
#ifndef GL_ES
= 80.0
#endif
;
in mediump vec3 transformedNormal;
in highp vec3 lightDirection;
in highp vec3 cameraDirection;

Loading…
Cancel
Save