sebastianhein / urp_kawase_blur

URP renderfeature test project
421 stars 76 forks source link

"Output Value 'frag' is not completely initialized on KawaseBlur shader Unity 2020.2.6f1 URP 10.3.2 #8

Open ryankcameron opened 3 years ago

ryankcameron commented 3 years ago

ShaderGraph "Bathroom Glass" has many "implicit truncation of vector type" errors starting at line 308, as well as "conversion from larger type to smaller, possible loss of data " errors.

Blurred Glass scene just shows a flat surface, but it will run in Unity Editor with no console errors.

Thanks for this shader, if it works we can possibly use it for Vision assessment in children at hospitals.

ryankcameron commented 2 years ago

Fixed warning by adding UNITY_INITIALIZE_OUTPUT(fixed4, col); to the KawaseBlur shader code, but still no effect visible for me, so I suspect its something else.

fixed4 frag (v2f input) : SV_Target { float2 res = _MainTex_TexelSize.xy; float i = _offset;

            fixed4 col; 
            UNITY_INITIALIZE_OUTPUT(fixed4, col);