quake2ts 0.0.510 → 0.0.511

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quake2ts",
3
- "version": "0.0.510",
3
+ "version": "0.0.511",
4
4
  "description": "Quake II re-release port to TypeScript with WebGL renderer - A complete game engine with physics, networking, and BSP rendering",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -21,6 +21,7 @@ uniform vec4 u_styleLayerMapping; // 0, 1, 2... or -1 if invalid
21
21
  uniform float u_alpha;
22
22
  uniform bool u_applyLightmap;
23
23
  uniform bool u_warp;
24
+ uniform bool u_lightmapOnly;
24
25
  uniform float u_time;
25
26
 
26
27
  uniform int u_renderMode; // 0: Textured, 1: Solid, 2: Solid Faceted
@@ -36,7 +37,10 @@ void main() {
36
37
 
37
38
  if (u_renderMode == 0) {
38
39
  // TEXTURED MODE
39
- vec4 base = texture(u_diffuseMap, v_texCoord);
40
+ vec4 base = vec4(1.0);
41
+ if (!u_lightmapOnly) {
42
+ base = texture(u_diffuseMap, v_texCoord);
43
+ }
40
44
 
41
45
  vec3 totalLight = vec3(1.0);
42
46