mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
text uses material
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#include"quad.h"
|
||||
#include "quad.h"
|
||||
|
||||
namespace vb01{
|
||||
Quad::Quad(Vector3 size, bool spatial) : Mesh(){
|
||||
@@ -18,7 +18,7 @@ namespace vb01{
|
||||
void Quad::setSize(Vector3 size){
|
||||
this->size = size;
|
||||
|
||||
Vertex v1,v2,v3,v4,v5,v6;
|
||||
Vertex v1, v2, v3, v4, v5, v6;
|
||||
if(spatial){
|
||||
v1.pos = Vector3(size.x / 2, size.y / 2, 0);
|
||||
v2.pos = Vector3(-size.x / 2, size.y / 2, 0);
|
||||
|
||||
Reference in New Issue
Block a user