Regular rendering uses a custom blend mode, but render passes renders to 2 separate textures. This wasn't configured correctly inside the fragment shaders. This patch adds a switch to configure the fragment shader with the correct attachments. Backport to Blender 2.83. Reviewed By: Clément Foucault Differential Revision: https://developer.blender.org/D9038
12 lines
291 B
GLSL
12 lines
291 B
GLSL
|
|
/* This shader is used to add default values to the volume accum textures.
|
|
* so it looks similar (transmittance = 1, scattering = 0) */
|
|
layout(location = 0) out vec4 FragColor0;
|
|
layout(location = 1) out vec4 FragColor1;
|
|
|
|
void main()
|
|
{
|
|
FragColor0 = vec4(0.0);
|
|
FragColor1 = vec4(1.0);
|
|
}
|