MCPcopy Create free account
hub / github.com/benfry/processing4 / loadAttributes

Method loadAttributes

core/src/processing/opengl/PShader.java:1123–1142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers 4

bindTypedMethod · 0.95
getPolyShaderMethod · 0.95
getLineShaderMethod · 0.95
getPointShaderMethod · 0.95

Calls 1

getAttributeLocMethod · 0.95

Tested by

no test coverage detected