(cls)
| 193 | |
| 194 | @classmethod |
| 195 | def parseShaders(cls): |
| 196 | root_path = "shaders/post_processing/" |
| 197 | |
| 198 | # -------- Default passthrough |
| 199 | |
| 200 | PWShaders.loadShader(PPostTypes.PPOST_DEFAULT, root_path + "post_default.vert", root_path + "post_default.frag") |
| 201 | cls.__fetchUniformLocations(PWShaders.getShader(PPostTypes.PPOST_DEFAULT)) |
| 202 | |
| 203 | # -------- |
| 204 | |
| 205 | PWShaders.loadShader(PPostTypes.PPOST_FISHEYE, root_path + "post_fisheye.vert", root_path + "post_fisheye.frag") |
| 206 | cls.__fetchUniformLocations(PWShaders.getShader(PPostTypes.PPOST_FISHEYE)) |
| 207 | |
| 208 | # -------- |
| 209 | |
| 210 | PWShaders.loadShader(PPostTypes.PPOST_RADIALB, root_path + "post_radialb.vert", root_path + "post_radialb.frag") |
| 211 | cls.__fetchUniformLocations(PWShaders.getShader(PPostTypes.PPOST_RADIALB)) |
| 212 | |
| 213 | # -------- |
| 214 | |
| 215 | PWShaders.loadShader(PPostTypes.PPOST_CROSSHA, root_path + "post_crossha.vert", root_path + "post_crossha.frag") |
| 216 | cls.__fetchUniformLocations(PWShaders.getShader(PPostTypes.PPOST_CROSSHA)) |
| 217 | |
| 218 | # -------- |
| 219 | |
| 220 | PWShaders.loadShader(PPostTypes.PPOST_THIRD3D, root_path + "post_third3d.vert", root_path + "post_third3d.frag") |
| 221 | shader = PWShaders.getShader(PPostTypes.PPOST_THIRD3D) |
| 222 | cls.__fetchUniformLocations(shader) |
| 223 | shader.proj_view = glGetUniformLocation(shader.shader, "projView") |
| 224 | shader.model = glGetUniformLocation(shader.shader, "model") |
| 225 | |
| 226 | # -------- |
| 227 |
nothing calls this directly
no test coverage detected