mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
implemented 2D image coloring
This commit is contained in:
+6
-1
@@ -43,6 +43,11 @@ namespace vb01{
|
||||
if(type==MATERIAL_2D)
|
||||
shader->setBool(lightingEnabled,"lightingEnabled");
|
||||
shader->setBool(texturingEnabled,"texturingEnabled");
|
||||
if(type==MATERIAL_GUI){
|
||||
shader->setBool(diffuseColorEnabled,"diffuseColorEnabled");
|
||||
if(diffuseColorEnabled)
|
||||
shader->setVec4(diffuseColor,"diffuseColor");
|
||||
}
|
||||
if(texturingEnabled){
|
||||
for(Texture *t : diffuseMapTextures)
|
||||
t->select();
|
||||
@@ -51,7 +56,7 @@ namespace vb01{
|
||||
for(Texture *t : specularMapTextures)
|
||||
t->select();
|
||||
}
|
||||
else{
|
||||
else {
|
||||
shader->setVec4(diffuseColor,"diffuseColor");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user