forked from yt-project/yt_idv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request yt-project#133 from chrishavlin/fail_pytest_on_sha…
…der_errors Add tests for shader program compilation
- Loading branch information
Showing
3 changed files
with
111 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
in vec4 model_vertex; // The location of the vertex in model space | ||
in vec3 in_dx; | ||
in vec3 in_left_edge; | ||
in vec3 in_right_edge; | ||
out vec4 v_model; | ||
flat out vec3 v_camera_pos; | ||
flat out mat4 inverse_proj; | ||
flat out mat4 inverse_mvm; | ||
flat out mat4 inverse_pmvm; | ||
flat out vec3 dx; | ||
flat out vec3 left_edge; | ||
flat out vec3 right_edge; | ||
|
||
void main() | ||
{ | ||
this_is a very bad shader. do_not use it. it is for_testing that the | ||
pytest tests_do indeed catch shader compilation errors. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters