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