]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/xonotic/slider_picmip.qc
pow(a, b) -> a ** b
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / xonotic / slider_picmip.qc
index 226f4559c3425c9ac748a3bb32559b8b61c54042..c6b7c1e8cc7b5cbaaace86d9bb4cd5fedd8b4e06 100644 (file)
@@ -18,8 +18,8 @@ float texmemsize(float s3tc)
 {
        return
        (
-                 2500 * pow(0.25, max(0, cvar("gl_picmip") + cvar("gl_picmip_other")))
-               + 1500 * pow(0.25, max(0, cvar("gl_picmip") + cvar("gl_picmip_world")))
+                 2500 * (0.25 ** max(0, cvar("gl_picmip") + cvar("gl_picmip_other")))
+               + 1500 * (0.25 ** max(0, cvar("gl_picmip") + cvar("gl_picmip_world")))
        ) * ((s3tc && (cvar("r_texture_dds_load") || cvar("gl_texturecompression"))) ? 0.2 : 1.0); // TC: normalmaps 50%, other 25%, few incompressible, guessing 40% as conservative average
 }
 void XonoticPicmipSlider_autofix(entity me)