]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make sRGB the default (and higher), but let lower settings use "wrong but fast" lighting. divVerent/sRGB
authorRudolf Polzer <divVerent@gmail.com>
Wed, 6 Feb 2019 01:52:27 +0000 (20:52 -0500)
committerRudolf Polzer <divVerent@gmail.com>
Wed, 6 Feb 2019 01:53:08 +0000 (20:53 -0500)
Also, adding a menu option for sRGB colorspace.

See: http://xonpickbot.designxenon.com:27500/poll/374

effects-high.cfg
effects-low.cfg
effects-med.cfg
effects-normal.cfg
effects-omg.cfg
effects-ultimate.cfg
effects-ultra.cfg
qcsrc/menu/xonotic/dialog_settings_effects.qc
sRGB-disable.cfg [deleted file]
sRGB-enable.cfg [deleted file]
xonotic-client.cfg

index 597bb4660a9f0e063e6009652c8c0997dbbbd99e..7b75e1d5e97eea05cb1e2fed12a10549e3be27b3 100644 (file)
@@ -1,21 +1,22 @@
+cl_damageeffect 1
 cl_decals 1
-cl_decals_models 0
 cl_decals_fadetime 4
+cl_decals_models 0
 cl_particles 1
 cl_particles_quality 1.0
-cl_damageeffect 1
-cl_spawn_point_particles 1
 cl_playerdetailreduction 4
+cl_spawn_point_particles 1
 gl_flashblend 0
 gl_picmip -1
 gl_texturecompression_2d 0
 gl_texturecompression_sky 0
+hud_postprocessing_maxbluralpha 0.5
+hud_powerup 0
 mod_q3bsp_nolightmaps 0
+mod_q3bsp_sRGBlightmaps 1
 r_bloom 1
 r_coronas 1
 r_coronas_occlusionquery 1
-hud_postprocessing_maxbluralpha 0.5
-hud_powerup 0
 r_depthfirst 2
 r_drawdecals_drawdistance 500
 r_drawparticles_drawdistance 1500
@@ -35,5 +36,6 @@ r_subdivisions_tolerance 3
 r_texture_dds_load 1
 r_water 1
 r_water_resolutionmultiplier 0.25
+vid_sRGB 1
 
 menu_sync
index c9549581bddb35ebfc0fa858b347760aed609b13..e4aa8e2183163d44b6fee99f6146dce15e33b4f3 100644 (file)
@@ -1,21 +1,22 @@
+cl_damageeffect 0
 cl_decals 1
-cl_decals_models 0
 cl_decals_fadetime 2
+cl_decals_models 0
 cl_particles 1
 cl_particles_quality 0.4
-cl_damageeffect 0
-cl_spawn_point_particles 0
 cl_playerdetailreduction 4
+cl_spawn_point_particles 0
 gl_flashblend 1
 gl_picmip 1
 gl_texturecompression_2d 1
 gl_texturecompression_sky 1
+hud_postprocessing_maxbluralpha 0
+hud_powerup 0
 mod_q3bsp_nolightmaps 1
+mod_q3bsp_sRGBlightmaps 0
 r_bloom 0
 r_coronas 1
 r_coronas_occlusionquery 0
-hud_postprocessing_maxbluralpha 0
-hud_powerup 0
 r_depthfirst 0
 r_drawdecals_drawdistance 200
 r_drawparticles_drawdistance 500
@@ -35,5 +36,6 @@ r_subdivisions_tolerance 8
 r_texture_dds_load 1
 r_water 0
 r_water_resolutionmultiplier 0.25
+vid_sRGB 0
 
 menu_sync
index 4ea20a1699d110c6742eab52260963c581b9ee66..5344f71a9f1e1e09882a16305df6472875c25da9 100644 (file)
@@ -1,21 +1,22 @@
+cl_damageeffect 0
 cl_decals 1
-cl_decals_models 0
 cl_decals_fadetime 2
+cl_decals_models 0
 cl_particles 1
 cl_particles_quality 0.8
-cl_damageeffect 0
-cl_spawn_point_particles 0
 cl_playerdetailreduction 4
+cl_spawn_point_particles 0
 gl_flashblend 0
 gl_picmip 0
 gl_texturecompression_2d 0
 gl_texturecompression_sky 1
+hud_postprocessing_maxbluralpha 0
+hud_powerup 0
 mod_q3bsp_nolightmaps 0
+mod_q3bsp_sRGBlightmaps 0
 r_bloom 0
 r_coronas 1
 r_coronas_occlusionquery 0
-hud_postprocessing_maxbluralpha 0
-hud_powerup 0
 r_depthfirst 0
 r_drawdecals_drawdistance 300
 r_drawparticles_drawdistance 750
@@ -35,5 +36,6 @@ r_subdivisions_tolerance 4
 r_texture_dds_load 1
 r_water 0
 r_water_resolutionmultiplier 0.25
+vid_sRGB 0
 
 menu_sync
index ba708cb9f803e9c4446f0f1861c019a3e3510892..ffd9121b3dd1c87c5eea9b3f5bc9da3729618119 100644 (file)
@@ -1,21 +1,22 @@
+cl_damageeffect 1
 cl_decals 1
-cl_decals_models 0
 cl_decals_fadetime 2
+cl_decals_models 0
 cl_particles 1
 cl_particles_quality 1.0
-cl_damageeffect 1
-cl_spawn_point_particles 1
 cl_playerdetailreduction 4
+cl_spawn_point_particles 1
 gl_flashblend 0
 gl_picmip 0
 gl_texturecompression_2d 0
 gl_texturecompression_sky 0
+hud_postprocessing_maxbluralpha 0
+hud_powerup 0
 mod_q3bsp_nolightmaps 0
+mod_q3bsp_sRGBlightmaps 1
 r_bloom 0
 r_coronas 1
 r_coronas_occlusionquery 0
-hud_postprocessing_maxbluralpha 0
-hud_powerup 0
 r_depthfirst 1
 r_drawdecals_drawdistance 300
 r_drawparticles_drawdistance 1000
@@ -35,5 +36,6 @@ r_subdivisions_tolerance 3
 r_texture_dds_load 1
 r_water 0
 r_water_resolutionmultiplier 0.25
+vid_sRGB 1
 
 menu_sync
index 7614417ce2027e42c4d711fce396faaaf7c1cd14..9eaa5645e975b0f218ef4338388c895d70ade7cb 100644 (file)
@@ -1,21 +1,22 @@
+cl_damageeffect 0
 cl_decals 0
-cl_decals_models 0
 cl_decals_fadetime 2
+cl_decals_models 0
 cl_particles 1
 cl_particles_quality 0.4
-cl_damageeffect 0
-cl_spawn_point_particles 0
 cl_playerdetailreduction 4
+cl_spawn_point_particles 0
 gl_flashblend 1
 gl_picmip 1337
 gl_texturecompression_2d 1
 gl_texturecompression_sky 1
+hud_postprocessing_maxbluralpha 0
+hud_powerup 0
 mod_q3bsp_nolightmaps 1
+mod_q3bsp_sRGBlightmaps 0
 r_bloom 0
 r_coronas 1
 r_coronas_occlusionquery 0
-hud_postprocessing_maxbluralpha 0
-hud_powerup 0
 r_depthfirst 0
 r_drawdecals_drawdistance 100
 r_drawparticles_drawdistance 250
@@ -35,5 +36,6 @@ r_subdivisions_tolerance 16
 r_texture_dds_load 1
 r_water 0
 r_water_resolutionmultiplier 0.25
+vid_sRGB 0
 
 menu_sync
index 3ce6f55a7f01483f9a6c94d1c4a9d53405abbe8b..65706636d519b76604193d630aea1f5c748dda6f 100644 (file)
@@ -1,21 +1,22 @@
+cl_damageeffect 2
 cl_decals 1
-cl_decals_models 1
 cl_decals_fadetime 10
+cl_decals_models 1
 cl_particles 1
 cl_particles_quality 1.0
-cl_damageeffect 2
-cl_spawn_point_particles 1
 cl_playerdetailreduction 0
+cl_spawn_point_particles 1
 gl_flashblend 0
 gl_picmip -1
 gl_texturecompression_2d 0
 gl_texturecompression_sky 0
+hud_postprocessing_maxbluralpha 0.5
+hud_powerup 0.5
 mod_q3bsp_nolightmaps 0
+mod_q3bsp_sRGBlightmaps 1
 r_bloom 1
 r_coronas 1
 r_coronas_occlusionquery 1
-hud_postprocessing_maxbluralpha 0.5
-hud_powerup 0.5
 r_depthfirst 2
 r_drawdecals_drawdistance 500
 r_drawparticles_drawdistance 3000
@@ -35,5 +36,6 @@ r_subdivisions_tolerance 1
 r_texture_dds_load 0
 r_water 1
 r_water_resolutionmultiplier 1
+vid_sRGB 1
 
 menu_sync
index d42d7c58ba07362f3d95b73bd5a6e8b90dab5835..c90c265af762553cf85545a76c4d1c92ba043521 100644 (file)
@@ -1,21 +1,22 @@
+cl_damageeffect 2
 cl_decals 1
-cl_decals_models 0
 cl_decals_fadetime 10
+cl_decals_models 0
 cl_particles 1
 cl_particles_quality 1.0
-cl_damageeffect 2
-cl_spawn_point_particles 1
 cl_playerdetailreduction 0
+cl_spawn_point_particles 1
 gl_flashblend 0
 gl_picmip -1
 gl_texturecompression_2d 0
 gl_texturecompression_sky 0
+hud_postprocessing_maxbluralpha 0.5
+hud_powerup 0.5
 mod_q3bsp_nolightmaps 0
+mod_q3bsp_sRGBlightmaps 1
 r_bloom 1
 r_coronas 1
 r_coronas_occlusionquery 1
-hud_postprocessing_maxbluralpha 0.5
-hud_powerup 0.5
 r_depthfirst 2
 r_drawdecals_drawdistance 500
 r_drawparticles_drawdistance 2000
@@ -35,5 +36,6 @@ r_subdivisions_tolerance 2
 r_texture_dds_load 0
 r_water 1
 r_water_resolutionmultiplier 0.5
+vid_sRGB 1
 
 menu_sync
index a9375327ec2e9735b2ea65db1e1632cc44edc5e1..c64c94b61293baf73fd3fdb8139dec5aff117f87 100644 (file)
@@ -220,6 +220,8 @@ void XonoticEffectsSettingsTab_fill(entity me)
                        _("Fade coronas according to visibility")));
                        setDependent(e, "r_coronas", 1, 1);
        me.TR(me);
+               me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "vid_sRGB", _("Use sRGB color space")));
+                       makeMulti(e, "mod_q3bsp_sRGBlightmaps");
        me.TR(me);
                me.TD(me, 1, 1, e = makeXonoticCheckBox_T(0, "r_bloom", _("Bloom"),
                        _("Enable bloom effect, which brightens the neighboring pixels of very bright pixels. Has a big impact on performance.")));
diff --git a/sRGB-disable.cfg b/sRGB-disable.cfg
deleted file mode 100644 (file)
index 930a0e7..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// good non-sRGB settings
-vid_sRGB 0
-mod_q3bsp_sRGBlightmaps 0
-r_hdr_scenebrightness 1
-r_ambient 4
-
-menu_sync
diff --git a/sRGB-enable.cfg b/sRGB-enable.cfg
deleted file mode 100644 (file)
index 107fdd5..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-// good sRGB settings
-vid_sRGB 1
-mod_q3bsp_sRGBlightmaps 1
-r_hdr_scenebrightness 1
-r_ambient 0.25
-
-menu_sync
index a074ea71a6afe16d224c0b02b332f285ef34c3d6..8a080c3d9efd6f9455ff3b24cc7dbccb4f0a5159 100644 (file)
@@ -103,9 +103,10 @@ v_deathtilt 0 // needed for spectators (who are dead to avoid prediction)
 alias menu_sync "" // will be re-aliased later
 
 // we want to use sRGB for our maps!
-exec sRGB-disable.cfg
 vid_sRGB_fallback 2
+r_ambient 0.25
 r_hdr_glowintensity 1
+r_hdr_scenebrightness 1
 // #define Image_LinearFloatFromsRGBFloat(c) (((c) <= 0.04045f) ? (c) * (1.0f / 12.92f) : (float)pow(((c) + 0.055f)*(1.0f/1.055f), 2.4f))
 set rpn_sRGB_to_linear "dup 0.055 add 1.055 div 2.4 pow exch 12.92 div dup 0.0031308 gt when"
 // #define Image_sRGBFloatFromLinearFloat(c) (((c) < 0.0031308f) ? (c) * 12.92f : 1.055f * (float)pow((c), 1.0f/2.4f) - 0.055f)