fix shader
This commit is contained in:
parent
8cccb01a75
commit
1f4d8c3789
1 changed files with 2 additions and 3 deletions
|
@ -26,8 +26,7 @@ void main(void) {
|
|||
|
||||
vec4 color1 = texture(tex0, vsoTexCoord);
|
||||
vec4 color2 = texture(tex1, vsoTexCoord);
|
||||
float fadeFactor = smoothstep(fadeStart, fadeEnd, 1 - vsoTexCoord.x);
|
||||
|
||||
fragColor = phongIL * mix(color1, color2, fadeFactor * fadeAmount) + ispec * vec4(1);
|
||||
float fadeFactor = smoothstep(fadeStart, fadeEnd, fadeAmount / vsoTexCoord.x);
|
||||
|
||||
fragColor = phongIL * mix(color1, color2, fadeFactor) + ispec * vec4(1);
|
||||
}
|
||||
|
|
Reference in a new issue