Commit graph

520 commits

Author SHA1 Message Date
Magnus Norddahl
e3cde7a9e9 More big beautiful porting 2025-08-08 00:43:45 +02:00
Magnus Norddahl
23a344b086 Apply sunlight as a true light source for line horizons 2025-08-05 10:53:26 +02:00
Magnus Norddahl
b23617475c Use palette textures for translucent/sprites and apply the translation remap when requesting an indexed texture 2025-07-25 02:50:45 +02:00
Magnus Norddahl
56e796cd3e Fix sunlight for vid_rendermode 2 2025-07-23 23:19:28 +02:00
Magnus Norddahl
4fa00d01ea Fix sunlight artifact 2025-07-22 20:23:53 +02:00
nashmuhandes
9fc4acf440 Fix sun lightmaps with gl_texture 0 2025-07-22 22:58:12 +08:00
Magnus Norddahl
3e6943fb4f Code for building a lightprobe AABB tree 2025-07-20 07:54:33 +02:00
dpjudas
e5db8d998a Make uLightProbeIndex take precedence over probemap, if specified 2025-07-19 21:14:55 +02:00
Magnus Norddahl
1efa5b19cd Add tile world position information to lightmapper copy pass 2025-07-19 02:28:19 +02:00
Magnus Norddahl
8faa4e65bc Create probemap texture for every lightmap atlas texture 2025-07-18 19:28:57 +02:00
Magnus Norddahl
9e8d76cc1e Prepare pbr shader to find the closest light probes from a texture 2025-07-18 16:39:14 +02:00
Magnus Norddahl
a9c1fdf23a Add specular highlights to sunlight 2025-07-17 02:52:28 +02:00
Magnus Norddahl
924a44e94d Change gl_raytrace back to its direct ray tracing 2025-07-16 09:33:42 +02:00
Magnus Norddahl
d0dc14c2c7 Add a brightness multiplier for PBR lights to make it closer match classic light model brightness 2025-07-10 05:57:58 +02:00
Magnus Norddahl
af6ec929cc Move lightmap atlas textures and light probes to the bindless textures array as its impossible to predict up front how many we need 2025-07-08 02:59:10 +02:00
Magnus Norddahl
523aaedecf Toy with raytracing 2025-06-24 21:20:48 +02:00
Magnus Norddahl
d1c6fbe61f Misc lightmapper adjustments 2025-06-24 15:04:16 +02:00
Magnus Norddahl
e5dd219f56 Workaround AMD driver crash by moving USE_RAYTRACE_PRECISE to a define instead of a specialization constant 2025-06-22 09:32:14 +02:00
Magnus Norddahl
4de06b3175 Turn off the light tiles 2025-05-30 20:43:30 +02:00
Magnus Norddahl
5a5c8d4bde Use the game palette to find the material color 2025-05-20 03:20:46 +02:00
Magnus Norddahl
ac335a5fbf Apply colormaps 2025-05-20 02:59:52 +02:00
Magnus Norddahl
f1fba4fe98 Move software dynlight stuff to lightmodel 2025-05-19 18:06:50 +02:00
dpjudas
3dbb4d7b9c Add lightmap and dynamic lights 2025-05-19 17:23:28 +02:00
dpjudas
23a5b05e45 Fix alpha test 2025-05-19 15:50:51 +02:00
Magnus Norddahl
990ce7c6c9 Render scene with indexed textures for vid_rendermode 2 2025-05-19 05:55:03 +02:00
Ricardo Luís Vaz Silva
e0897ae8b2 remove broken precise midtexture trace, fix sky tracing for actors 2025-05-16 00:47:50 +02:00
RaveYard
ee14cee226 SoftShadowRadius for 1 sample RT lights via dithering effect 2025-04-11 16:25:06 +02:00
dpjudas
202d99bf9e Add worker thread for creating pipelines 2025-04-10 08:17:45 +02:00
RaveYard
ecf60edc33 Fix vertex lighting 2025-04-04 23:46:02 +02:00
RaveYard
52f797ccc1 modify traceShadow by extracting TraceDynLightRay/TraceAnyHit switching outside the for loop 2025-04-03 23:23:52 +02:00
RaveYard
1ede453fa5 Wip optimize ubershader compilation time 2025-04-03 23:02:36 +02:00
RaveYard
9967cfb319 Fix shaderkey.glsl lightblendmode constants 2025-04-02 13:14:38 +02:00
RaveYard
0ede28b03d Workaround for a strange GLSL bug
It seems like GLSL compiler is incorrectly inlining 'texelFetch(int index, ...)' and thus implicitly casting sampler2D to int
2025-04-02 13:14:38 +02:00
dpjudas
178d486b6f Fix fogboundary compile error 2025-03-25 09:33:21 +01:00
Magnus Norddahl
3313baad6b Use shader specialization constants 2025-03-22 15:12:07 +01:00
nashmuhandes
65ade3e017 Apply scaled model normals fix from GZDoom (538f62a556) 2025-02-24 23:23:33 +08:00
RaveYard
2dd7ad8eb2 WIP multiple probes support 2025-02-22 10:15:15 +01:00
Ricardo Luís Vaz Silva
46d6a5dfd0 fix 😓 2025-02-22 15:25:49 +08:00
RaveYard
4e9127c0a1 Fix shader compilation error 2025-02-20 15:14:51 +01:00
dpjudas
aca088d601 Add uniform for specifying the light probe 2025-02-19 02:16:21 +01:00
Ricardo Luís Vaz Silva
77f19ba6f5 initial work for ubershaders 2025-02-18 09:45:25 +01:00
Magnus Norddahl
81062ecebe Sample from the correct location 2025-02-17 17:06:09 +01:00
Magnus Norddahl
18ea5c9da7 Actually load the BRDF LUT texture 2025-02-17 16:45:20 +01:00
Ricardo Luís Vaz Silva
43ba3ad0a6 clean up comments 2025-02-17 02:34:45 +01:00
Ricardo Luís Vaz Silva
961e74e0fa add camera-facing midtexture shadows to dynamic lights, off by default due to fps hit 2025-02-17 02:34:45 +01:00
Ricardo Luís Vaz Silva
7c2b228c46 add uCameraNormal 2025-02-17 02:34:45 +01:00
Magnus Norddahl
59f1d71361 Tone down how much light is contributed from the environment 2025-02-16 23:53:41 +01:00
Magnus Norddahl
513f90db3e Add VkLightprober to VulkanRenderDevice and fix the glsl compile errors 2025-02-16 13:37:40 +01:00
Magnus Norddahl
bbaaa9a49d Add the nonuniformEXT qualifier for AMD hardware 2025-02-13 00:52:49 +01:00
Ricardo Luís Vaz Silva
7f8830a4ff fix gpu model lighting 2025-01-20 16:45:08 +01:00