fix: added log10 macro

This commit is contained in:
Almamu 2025-04-04 03:36:54 +02:00
parent e2adad329b
commit c41cac19fb

View File

@ -90,6 +90,7 @@ void CCompiler::compile () {
"#define saturate(x) (clamp(x, 0.0, 1.0))\n"
"#define texSample2D texture\n"
"#define texSample2DLod textureLod\n"
"#define log10(x) log2(x) * 0.301029995663981\n"
"#define atan2 atan\n"
"#define fmod(x, y) ((x)-(y)*trunc((x)/(y)))\n"
"#define ddx dFdx\n"