]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Refactored R_UpdateEntityLighting to CL_UpdateEntityShading, which sets fields like...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 9 Apr 2018 04:39:19 +0000 (04:39 +0000)
committerRudolf Polzer <divVerent@gmail.com>
Sun, 15 Mar 2020 01:51:44 +0000 (21:51 -0400)
commit34aee06679e51a6bc9967530d0d8aa73aa3eda38
tree72974bb69c0bdb89d60bc7b729ea80f1820ec686
parent254f265a4209363a017ef60c922e9872848bdd82
Refactored R_UpdateEntityLighting to CL_UpdateEntityShading, which sets fields like ent->render_modellight_ambient.

Added texture->render_modellight_ambient and similar fields which concretely define how the material is to be rendered, so all of the various tweaks and modifiers are no longer buried in R_SetupShader_Surface which has now been refactored heavily.

Removed R_LightPoint as it's really not necessary - this change will make lit particles a little bit slower as R_CompleteLightPoint is a slightly more expensive function.

Refactored R_CompleteLightPoint to have more consistent code, changed the final color math so that it passes q1bsp/q2bsp lighting through unmodified.

Changed shading of tag_entity attachments - they now use the root entity's origin for shading, this fixes r_shadows where the shadows could go in different directions on CSQC entities (r_shadows code already contained a hack to work around this problem for network entities).

Renamed r_refdef.lightmapintensity and ambient to r_refdef.scene.lightmapintensity and ambientintensity.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12376 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=4e1f3f76d5fe7befe20034a730630c314d45956b
18 files changed:
cl_main.c
cl_particles.c
cl_screen.c
client.h
clvm_cmds.c
csprogs.c
csprogs.h
gl_rmain.c
gl_rsurf.c
model_brush.h
model_shared.h
mvm_cmds.c
r_shadow.c
r_shadow.h
r_sprites.c
render.h
shader_glsl.h
shader_hlsl.h