View Full Version : A simple question baout mat4
01-04-2007, 04:34 AM
mat4 is a 4*4 matrix. can I initialize this matrix with 12 values?As an example:
mat4 d(a, b, c );
01-04-2007, 06:45 AM
the spec states that there must always be enough components to initialize a whole vector or matrix, so in your case you need 16 values.
01-05-2007, 11:31 PM
I guess this law is not correct for vectors. Also we can use from one number to initialize the matrix. As an example the following command sets all the diagonal values to 1 and sets other values to 0:
( But I think that if we use from more than one value to initialize matices, we should initialize all the values ).
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.