Replies: 2 comments
-
nevermind I managed that and more I still need help on how to remove "objects" from the matrices var I dont comprehend what that even does or what kind of data is in it, I couldnt manage to find a pop function for it. and I dont understand shaders, I want to be able to give flat colors to cubes, and also maybe a point light here is what I have come up with
|
Beta Was this translation helpful? Give feedback.
-
This way gl works seems very counter intuitive to me I still havent figured out what the buffers do 3d graphics as I know it is just about coordinates of triangles stored in a array somewhere I would like to directly access them and modify them |
Beta Was this translation helpful? Give feedback.
-
Hi I still dont know what most of these things do
I discovered that this adds the cubes somehow
I want to add more cubes in the loop
I tried with this:
$m = new Mat4;
$p = new Vec3(rand(0,10), rand(0,10), rand(0,10));
$m->translate(($p ) );
$matrices->pushMat4($m);
doesnt work but obviously Im missing other things
what else do I need to do?
Beta Was this translation helpful? Give feedback.
All reactions