Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pack lightmap coordinates into two vertex attributes
- Loading branch information
Showing
8 changed files
with
192 additions
and
118 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
#ifdef VERTEX_SHADER | ||
|
||
qf_attribute vec4 a_Position; | ||
qf_attribute vec4 a_SVector; | ||
qf_attribute vec4 a_Normal; | ||
qf_attribute vec4 a_Color; | ||
qf_attribute vec2 a_TexCoord; | ||
qf_attribute vec2 a_LightmapCoord0, a_LightmapCoord1, a_LightmapCoord2, a_LightmapCoord3; | ||
#endif | ||
# ifdef NUM_LIGHTMAPS | ||
qf_attribute qf_lmvec01 a_LightmapCoord01; | ||
# if NUM_LIGHTMAPS > 2 | ||
qf_attribute qf_lmvec23 a_LightmapCoord23; | ||
# endif // NUM_LIGHTMAPS > 2 | ||
#endif // NUM_LIGHTMAPS | ||
|
||
#endif // VERTEX_SHADER |
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
Oops, something went wrong.