|
|
|
|
|
|
|
|
else |
|
|
else |
|
|
renderSizeChanged = false; |
|
|
renderSizeChanged = false; |
|
|
for (int i = 0; i < shaderList.size(); i++) { |
|
|
for (int i = 0; i < shaderList.size(); i++) { |
|
|
//try { |
|
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
|
shaderList.get(i).getValuesFromGUI(); |
|
|
shaderList.get(i).getValuesFromGUI(); |
|
|
if (bricks.get(i).active) { |
|
|
if (bricks.get(i).active) { |
|
|
//shaderList.get(i).getValuesFromGUI(); |
|
|
//shaderList.get(i).getValuesFromGUI(); |
|
|
shaderList.get(i).shade(); |
|
|
shaderList.get(i).shade(); |
|
|
} |
|
|
} |
|
|
// } |
|
|
|
|
|
//catch(Exception e) { |
|
|
|
|
|
// println("Warning: Brick not yet loaded"); |
|
|
|
|
|
//} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
catch(Exception e) { |
|
|
|
|
|
println("Warning: Brick not yet loaded"); |
|
|
|
|
|
} |
|
|
if (i > maxFx) break; |
|
|
if (i > maxFx) break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |