mostly implemented particle emitter

This commit is contained in:
devZoGok
2021-10-18 19:04:49 +03:00
parent 03f65e62f5
commit d1f2f9b152
22 changed files with 444 additions and 31 deletions
+4 -1
View File
@@ -12,6 +12,9 @@ namespace vb01{
case MATERIAL_2D:
shaderName="texture.";
break;
case MATERIAL_PARTICLE:
shaderName="particle.";
break;
case MATERIAL_SKYBOX:
shaderName="skybox.";
break;
@@ -23,7 +26,7 @@ namespace vb01{
void Material::update(){
shader->use();
shader->setBool(lightingEnabled,"lightingEnabled");
if(type==MATERIAL_2D)shader->setBool(lightingEnabled,"lightingEnabled");
for(Texture *t : diffuseMapTextures)
t->select();
for(Texture *t : normalMapTextures)