]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/generate.cpp
Some rearranging and comments
[libs/gl.git] / source / glsl / generate.cpp
index 09a776afb7f60bb61d2bdc47d0a8f3fb9e470b3e..158bb4cc91b67b39239358c70bf0237ef5821ed0 100644 (file)
@@ -191,6 +191,9 @@ void TypeResolver::visit(BasicTypeDeclaration &type)
                        if(basic_base->kind==BasicTypeDeclaration::VECTOR)
                        {
                                type.kind = BasicTypeDeclaration::MATRIX;
+                               /* A matrix's base type is its column vector type.  This will put
+                               the column vector's size, i.e. the matrix's row count, in the high
+                               half of the size. */
                                type.size |= basic_base->size<<16;
                        }