Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rendering and updating 160000 cars very stupidly #1
- Loading branch information
Showing
4 changed files
with
64 additions
and
4 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
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,12 @@ | ||
#version 140 | ||
uniform mat4 model; | ||
uniform mat4 view; | ||
uniform mat4 perspective; | ||
in vec3 position; | ||
in vec3 world_position; | ||
out vec3 p; | ||
void main() { | ||
mat4 modelview = view * model; | ||
gl_Position = perspective * modelview * vec4(position + world_position, 1.0); | ||
p = position; | ||
} |