Browse Source

Shaders: Bitangent is disallowed only with InstancedObjectId.

With just ObjectId it's fine. Sorry for a silly breakage!
pull/527/head
Vladimír Vondruš 5 years ago
parent
commit
c942e3e764
  1. 2
      src/Magnum/Shaders/PhongGL.cpp

2
src/Magnum/Shaders/PhongGL.cpp

@ -91,7 +91,7 @@ PhongGL::PhongGL(const Flags flags, const UnsignedInt lightCount
"Shaders::PhongGL: texture transformation enabled but the shader is not textured", ); "Shaders::PhongGL: texture transformation enabled but the shader is not textured", );
#ifndef MAGNUM_TARGET_GLES2 #ifndef MAGNUM_TARGET_GLES2
CORRADE_ASSERT(!(flags & Flag::InstancedObjectId) || !(flags & Flag::Bitangent), CORRADE_ASSERT(!(flags >= Flag::InstancedObjectId) || !(flags & Flag::Bitangent),
"Shaders::PhongGL: Bitangent attribute binding conflicts with the ObjectId attribute, use a Tangent4 attribute with instanced object ID rendering instead", ); "Shaders::PhongGL: Bitangent attribute binding conflicts with the ObjectId attribute, use a Tangent4 attribute with instanced object ID rendering instead", );
#endif #endif

Loading…
Cancel
Save