HULL/code/renderergl2
Zack Middleton e3abcffeb0 OpenGL2: Fix using merged lightmaps with tcGen environment
tcGen environment generates texcoords in range of 0.0 to 1.0 and they
need to be offset to the position/size in the merged lightmap atlas.

This also needs to be after tcMods so they apply for the original range.
This fixes tcMod scale used by main_q3abanner and shinygrate1_4.

This issue was visible on the blue monitor (comp3c) near the plasmagun
in q3dm0 and the Quake III Arena banner in q3dm17.

Affected shaders in Quake 3 and Team Arena maps:

textures/base_wall/comp3
textures/base_wall/comp3b
textures/base_wall/comp3b_dark
textures/base_wall/comp3c
textures/base_wall/main_q3abanner
textures/base_wall/shinygrate1_4
textures/sfx/teslacoil

All of the shaders are used by q3dm0 but other maps also use some.
2024-02-10 16:23:54 -05:00
..
glsl OpenGL2: Fix applying tcMod turb 2024-01-18 03:16:39 -05:00
tr_animation.c Allow more than 32 surfaces in skin files 2017-07-04 14:06:09 -05:00
tr_backend.c OpenGL2: Fix updating the loading screen with r_cubeMapping 1 2023-11-22 21:11:41 -05:00
tr_bsp.c OpenGL2: Fix merged lightmap hacks to have real lightmap index 2024-02-10 16:23:54 -05:00
tr_cmds.c OpenGL2: Misc fixes and cleanup 2018-07-20 23:40:35 -05:00
tr_curve.c More predictable mesh normals generation 2022-03-21 18:07:23 +00:00
tr_dsa.c OpenGL2: Misc fixes and cleanup 2018-07-20 23:40:35 -05:00
tr_dsa.h OpenGL2: Detect Intel graphics and avoid/use certain operations there. 2016-12-07 22:30:55 -08:00
tr_extensions.c OpenGL2: Misc fixes and cleanup 2018-07-20 23:40:35 -05:00
tr_extramath.c OpenGL2: Store vertex colors and hdr lightmaps/lightgrid as RGBA16. 2016-10-11 03:28:20 -07:00
tr_extramath.h OpenGL2: Store vertex colors and hdr lightmaps/lightgrid as RGBA16. 2016-10-11 03:28:20 -07:00
tr_extratypes.h Clarify comment for OpenGL2's RDF_NOFOG 2013-05-24 13:16:56 -05:00
tr_fbo.c OpenGL2: Fix sun rays being affected by the viewport size 2024-02-08 16:34:05 -05:00
tr_fbo.h OpenGL2: Some FBO cleanup, and add non-depth blur to blur shader. 2016-04-05 02:37:05 -07:00
tr_flares.c OpenGL2: Misc fixes and cleanup 2018-07-20 23:40:35 -05:00
tr_glsl.c OpenGL2: Fix applying tcMod turb 2024-01-18 03:16:39 -05:00
tr_image_dds.c OpenGL2: Add r_exportCubemaps for saving cubemaps on map load. 2015-12-22 05:04:07 -08:00
tr_image.c OpenGL2: GL_DEPTH_TEXTURE_MODE was removed from OpenGL 3.0/Core 2021-10-23 12:49:48 -04:00
tr_init.c Print full GL_EXTENSIONS list for OpenGL contexts before 3.0 2021-10-23 07:31:38 -04:00
tr_light.c OpenGL2: Restore adding fixed ambient light when HDR is enabled 2017-12-15 17:46:51 -06:00
tr_local.h OpenGL2: Fix merged lightmap hacks to have real lightmap index 2024-02-10 16:23:54 -05:00
tr_main.c Only draw cm_patch/bot debug polygons in world scenes 2017-10-08 07:18:40 -05:00
tr_marks.c OpenGL2: Store normals/tangents as int16_t[4]. 2016-09-06 00:57:15 -07:00
tr_mesh.c OpenGL2: Fix MD3 surface with zero shaders dividing by zero 2017-10-04 21:00:04 -05:00
tr_model_iqm.c Fix the number of weights in the IQM model calculation 2021-04-03 15:40:45 -04:00
tr_model.c Add vao cache for static surfaces. 2017-04-28 02:13:25 -07:00
tr_postprocess.c OpenGL2: Fix brightness when r_autoExposure is disabled 2017-10-02 20:46:36 -05:00
tr_postprocess.h OpenGL2: Match glsl data type names: matrix_t -> mat4_t, vec*i_t -> ivec*_t 2013-11-19 03:23:50 -08:00
tr_scene.c OpenGL2: Misc fixes and cleanup 2018-07-20 23:40:35 -05:00
tr_shade_calc.c Isolate the Altivec code so non-Altivec PPC targets can use the same binary. 2018-05-12 14:14:47 -04:00
tr_shade.c OpenGL2: Fix applying tcMod turb 2024-01-18 03:16:39 -05:00
tr_shader.c OpenGL2: Fix using merged lightmaps with tcGen environment 2024-02-10 16:23:54 -05:00
tr_shadows.c OpenGL2: Misc fixes and cleanup 2018-07-20 23:40:35 -05:00
tr_sky.c OpenGL2: Fix applying tcMod turb 2024-01-18 03:16:39 -05:00
tr_subs.c renderer -> renderergl1, rend2 -> renderergl2 2013-02-15 23:46:37 +00:00
tr_surface.c OpenGL2: Add GPU vertex skinning for IQM models 2018-07-27 17:40:25 -05:00
tr_vbo.c OpenGL2: Misc fixes and cleanup 2018-07-20 23:40:35 -05:00
tr_world.c OpenGL2: Remove SF_VAO_MESH. 2017-06-16 16:52:53 -07:00