()
| 1121 | |
| 1122 | |
| 1123 | protected void loadAttributes() { |
| 1124 | if (loadedAttributes) return; |
| 1125 | |
| 1126 | vertexLoc = getAttributeLoc("vertex"); |
| 1127 | if (vertexLoc == -1) vertexLoc = getAttributeLoc("position"); |
| 1128 | |
| 1129 | colorLoc = getAttributeLoc("color"); |
| 1130 | texCoordLoc = getAttributeLoc("texCoord"); |
| 1131 | normalLoc = getAttributeLoc("normal"); |
| 1132 | |
| 1133 | ambientLoc = getAttributeLoc("ambient"); |
| 1134 | specularLoc = getAttributeLoc("specular"); |
| 1135 | emissiveLoc = getAttributeLoc("emissive"); |
| 1136 | shininessLoc = getAttributeLoc("shininess"); |
| 1137 | |
| 1138 | directionLoc = getAttributeLoc("direction"); |
| 1139 | offsetLoc = getAttributeLoc("offset"); |
| 1140 | |
| 1141 | loadedAttributes = true; |
| 1142 | } |
| 1143 | |
| 1144 | |
| 1145 | protected void loadUniforms() { |
no test coverage detected