()
| 1187 | |
| 1188 | |
| 1189 | protected void setCommonUniforms() { |
| 1190 | if (-1 < transformMatLoc) { |
| 1191 | currentPG.updateGLProjmodelview(); |
| 1192 | setUniformMatrix(transformMatLoc, currentPG.glProjmodelview); |
| 1193 | } |
| 1194 | |
| 1195 | if (-1 < modelviewMatLoc) { |
| 1196 | currentPG.updateGLModelview(); |
| 1197 | setUniformMatrix(modelviewMatLoc, currentPG.glModelview); |
| 1198 | } |
| 1199 | |
| 1200 | if (-1 < projectionMatLoc) { |
| 1201 | currentPG.updateGLProjection(); |
| 1202 | setUniformMatrix(projectionMatLoc, currentPG.glProjection); |
| 1203 | } |
| 1204 | |
| 1205 | if (-1 < viewportLoc) { |
| 1206 | float x = currentPG.viewport.get(0); |
| 1207 | float y = currentPG.viewport.get(1); |
| 1208 | float w = currentPG.viewport.get(2); |
| 1209 | float h = currentPG.viewport.get(3); |
| 1210 | setUniformValue(viewportLoc, x, y, w, h); |
| 1211 | } |
| 1212 | |
| 1213 | if (-1 < resolutionLoc) { |
| 1214 | float w = currentPG.viewport.get(2); |
| 1215 | float h = currentPG.viewport.get(3); |
| 1216 | setUniformValue(resolutionLoc, w, h); |
| 1217 | } |
| 1218 | |
| 1219 | if (-1 < ppixelsLoc) { |
| 1220 | ppixelsUnit = getLastTexUnit() + 1; |
| 1221 | setUniformValue(ppixelsLoc, ppixelsUnit); |
| 1222 | pgl.activeTexture(PGL.TEXTURE0 + ppixelsUnit); |
| 1223 | currentPG.bindFrontTexture(); |
| 1224 | } else { |
| 1225 | ppixelsUnit = -1; |
| 1226 | } |
| 1227 | } |
| 1228 | |
| 1229 | |
| 1230 | protected void bindTyped() { |
no test coverage detected