mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +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
3347a84656
commit
8cb38b91f9
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);
|
||||
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