mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 17:43:52 +00:00
Fix invisible NPC body parts caused by texture alpha
Character fragment shader was using texture alpha, which could be 0 in baked NPC textures. Force alpha=1 for opaque character rendering.
This commit is contained in:
parent
70e3e9cce3
commit
7d718e9249
1 changed files with 2 additions and 1 deletions
|
|
@ -154,7 +154,8 @@ bool CharacterRenderer::initialize() {
|
||||||
float fogFactor = clamp((uFogEnd - fogDist) / (uFogEnd - uFogStart), 0.0, 1.0);
|
float fogFactor = clamp((uFogEnd - fogDist) / (uFogEnd - uFogStart), 0.0, 1.0);
|
||||||
result = mix(uFogColor, result, fogFactor);
|
result = mix(uFogColor, result, fogFactor);
|
||||||
|
|
||||||
FragColor = vec4(result, texColor.a);
|
// Force alpha=1 for opaque character rendering (baked NPC textures may have alpha=0)
|
||||||
|
FragColor = vec4(result, 1.0);
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue