quake2ts 0.0.510 → 0.0.512

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.
@@ -3231,6 +3231,7 @@ uniform vec4 u_styleLayerMapping; // 0, 1, 2... or -1 if invalid
3231
3231
  uniform float u_alpha;
3232
3232
  uniform bool u_applyLightmap;
3233
3233
  uniform bool u_warp;
3234
+ uniform bool u_lightmapOnly;
3234
3235
  uniform float u_time;
3235
3236
 
3236
3237
  uniform int u_renderMode; // 0: Textured, 1: Solid, 2: Solid Faceted
@@ -3246,7 +3247,10 @@ void main() {
3246
3247
 
3247
3248
  if (u_renderMode == 0) {
3248
3249
  // TEXTURED MODE
3249
- vec4 base = texture(u_diffuseMap, v_texCoord);
3250
+ vec4 base = vec4(1.0);
3251
+ if (!u_lightmapOnly) {
3252
+ base = texture(u_diffuseMap, v_texCoord);
3253
+ }
3250
3254
 
3251
3255
  vec3 totalLight = vec3(1.0);
3252
3256