Fix T51463: Eevee motion blur not working (with AMD)
GLSL needs FragColor to be initialized. The default vec4 value seems to be implementation dependent. Or it's a bug on Mesa/AMD.
This commit is contained in:
parent
826f3c715c
commit
1a7099f3ec
Notes:
blender-bot
2023-02-14 10:11:54 +01:00
Referenced by issue #51463, Eevee motion blur not workig with core profile Referenced by issue #51433, Eevee and multi-view: Visual artifacts (blurness)
|
@ -56,6 +56,8 @@ void main()
|
|||
|
||||
float inc = 2.0 * inv_samples;
|
||||
float i = -1.0 + noise;
|
||||
|
||||
FragColor = vec4(0.0, 0.0, 0.0, 1.0);
|
||||
for (int j = 0; j < samples && j < MAX_SAMPLE; j++) {
|
||||
FragColor += texture(colorBuffer, uvcoordsvar.xy + motion * i) * inv_samples;
|
||||
i += inc;
|
||||
|
|
Loading…
Reference in New Issue