Commit: 51914d4a4ada5288d8ab30330e707f72d1073d1d Author: Jeroen Bakker Date: Wed Nov 16 12:53:10 2022 +0100 Branches: blender-v3.4-release https://developer.blender.org/rB51914d4a4ada5288d8ab30330e707f72d1073d1d
Fix T100530: Drawing arifacts Volume/AMD. Missing initialization of global shader variable. Most drivers initialize these by them selves, but not all of them. =================================================================== M source/blender/draw/engines/eevee/shaders/volumetric_frag.glsl =================================================================== diff --git a/source/blender/draw/engines/eevee/shaders/volumetric_frag.glsl b/source/blender/draw/engines/eevee/shaders/volumetric_frag.glsl index 90c36801dd5..a98ff4b1842 100644 --- a/source/blender/draw/engines/eevee/shaders/volumetric_frag.glsl +++ b/source/blender/draw/engines/eevee/shaders/volumetric_frag.glsl @@ -20,7 +20,7 @@ layout(location = 1) out vec4 volumeExtinction; layout(location = 2) out vec4 volumeEmissive; layout(location = 3) out vec4 volumePhase; -int attr_id; +int attr_id = 0; #ifndef CLEAR GlobalData init_globals(void) _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
