Browse Source

Shaders: fix setup of the tangent attribute on ES2.

Yay tests!
pull/364/head
Vladimír Vondruš 7 years ago
parent
commit
c98b65b82f
  1. 2
      src/Magnum/Shaders/Phong.cpp

2
src/Magnum/Shaders/Phong.cpp

@ -118,6 +118,8 @@ Phong::Phong(const Flags flags, const UnsignedInt lightCount): _flags{flags}, _l
{
bindAttributeLocation(Position::Location, "position");
bindAttributeLocation(Normal::Location, "normal");
if(flags & Flag::NormalTexture)
bindAttributeLocation(Tangent::Location, "tangent");
if(flags & (Flag::AmbientTexture|Flag::DiffuseTexture|Flag::SpecularTexture))
bindAttributeLocation(TextureCoordinates::Location, "textureCoordinates");
}

Loading…
Cancel
Save