Browse Source

Shaders: minor cleanup.

pull/601/head
Vladimír Vondruš 3 years ago
parent
commit
b3e6bee913
  1. 8
      src/Magnum/Shaders/Flat.frag
  2. 2
      src/Magnum/Shaders/Test/FlatGLTest.cpp

8
src/Magnum/Shaders/Flat.frag

@ -165,6 +165,10 @@ in lowp vec4 interpolatedVertexColor;
flat in highp uint interpolatedInstanceObjectId;
#endif
#ifdef MULTI_DRAW
flat in highp uint drawId;
#endif
/* Outputs */
#ifdef NEW_GLSL
@ -181,10 +185,6 @@ layout(location = OBJECT_ID_OUTPUT_ATTRIBUTE_LOCATION)
out highp uint fragmentObjectId;
#endif
#ifdef MULTI_DRAW
flat in highp uint drawId;
#endif
void main() {
#ifdef UNIFORM_BUFFERS
#ifdef OBJECT_ID

2
src/Magnum/Shaders/Test/FlatGLTest.cpp

@ -544,7 +544,7 @@ const struct {
{3*4, FlatGL2D::Weights{FlatGL2D::Weights::Components::Three}},
}}, false, true, false,
"skinning.tga"},
{"single set, upload joint matrices one by one", 5, 3, 0, 0, 0, {}, {InPlaceInit, {
{"single set, upload joint matrices one by one", 5, 3, 0, 0, 0, {}, {InPlaceInit, {
{0, FlatGL2D::JointIds{FlatGL2D::JointIds::Components::Three}},
{3*4, FlatGL2D::Weights{FlatGL2D::Weights::Components::Three}},
}}, false, true, true,

Loading…
Cancel
Save