Commit 394a1c5
committed
Enable realtime lights for vertex-lit surfaces
Use the lightMapping GLSL shader instead of `generic` to render BSP
surfaces that are vertex-lit due to an explicit `rgbGen vertex`. This
makes them use the same code path as BSP surfaces where vertex lighting
is automatically selected due to the absence of a lightmap.
So now it is possible to render realtime lights on explicitly vertex-lit
surfaces, though they are still not as bright as they should be due to
#1415.
In the following commit, this will let us remove some ugly code used for
applying the overbright factor to the `generic` shader.1 parent e3b6aab commit 394a1c5
File tree
5 files changed
+22
-3
lines changed- src/engine/renderer
5 files changed
+22
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
680 | 680 | | |
681 | 681 | | |
682 | 682 | | |
683 | | - | |
| 683 | + | |
| 684 | + | |
684 | 685 | | |
685 | 686 | | |
686 | 687 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
874 | | - | |
| 874 | + | |
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
964 | 964 | | |
965 | 965 | | |
966 | 966 | | |
| 967 | + | |
| 968 | + | |
967 | 969 | | |
968 | 970 | | |
969 | 971 | | |
| |||
1033 | 1035 | | |
1034 | 1036 | | |
1035 | 1037 | | |
| 1038 | + | |
| 1039 | + | |
1036 | 1040 | | |
1037 | 1041 | | |
1038 | 1042 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5202 | 5202 | | |
5203 | 5203 | | |
5204 | 5204 | | |
| 5205 | + | |
| 5206 | + | |
| 5207 | + | |
| 5208 | + | |
| 5209 | + | |
| 5210 | + | |
| 5211 | + | |
| 5212 | + | |
5205 | 5213 | | |
5206 | 5214 | | |
5207 | 5215 | | |
| |||
6453 | 6461 | | |
6454 | 6462 | | |
6455 | 6463 | | |
| 6464 | + | |
6456 | 6465 | | |
6457 | 6466 | | |
6458 | 6467 | | |
| |||
0 commit comments