Better contrast

This commit is contained in:
PedroEdiaz
2024-12-09 00:39:39 -06:00
parent 86480fe9b1
commit f21121b88d
2 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ const char *fs_plain =
"void main()"
"{"
" FragColor = vec4(pow(vec3(Color),vec3(1.0/2.2)),Color.a);"
" FragColor = vec4(pow(vec3(Color),vec3(1.0/1.0)),Color.a);"
"}";
const char *fs =
@@ -92,7 +92,7 @@ const char *fs =
" float specular = pow(abs(dot(normalize(Normal), halfwayDir)), 32.0);\n"
" float diffuse = abs(dot(normalize(Normal), lightDir));\n"
" vec3 result = pow((0.5 + 0.5*diffuse + 1.5*specular) * Color.rgb, "
" vec3 result = pow((0.5 + 0.5*diffuse + 1*specular) * Color.rgb, "
"vec3(1.0/2.2));\n"
" FragColor = vec4(result, Color.a);\n"
"}";

View File

@@ -19,7 +19,7 @@ struct projection projection = {.x = 0, .y = 1, .z = 2, .w = 3, .mesh = NULL};
const char *wname = "manigraph: manifold grapher";
unsigned char color[4] = {0x2F, 0x3C, 0x7E, 0xff};
unsigned char color[4] = {0x00, 0x7f, 0xff, 0xff};
void mlog(char *msg)
{