Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black Mesa maps are too dark #77

Open
zEvilCube opened this issue Jan 18, 2023 · 1 comment
Open

Black Mesa maps are too dark #77

zEvilCube opened this issue Jan 18, 2023 · 1 comment

Comments

@zEvilCube
Copy link

zEvilCube commented Jan 18, 2023

This is probably because the game itself is very dark, but is there a way to make maps brighter in this program?

OpenSource_AWTgcEQtf6

Here's .cfg and .bat files I used
misc.zip

@w23
Copy link
Owner

w23 commented Jan 19, 2023

I can think of a few reasons why it might be so:

  1. OpenSource doesn't support HDR lightmaps, it only supports the older format.
  2. It doesn't support lightstyles (which are used for e.g. different lamps turned on) and will only read the first one.

I'm not in a capacity right now to implement any of the above. So I can offer a temp workaround of just multiplying the lightmap color by some kind of a number > 1 here:

"vec3 lm = texture2D(u_lightmap, v_lightmap_uv).xyz;\n"

E.g. "vec3 lm = texture2D(u_lightmap, v_lightmap_uv).xyz * 2.f;\n"

Another option would be to disable lightmaps completely:

ctx->mat->shader = MShader_LightmappedGeneric;

Change it to ctx->mat->shader = MShader_UnlitGeneric;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants