urp_kawase_blur icon indicating copy to clipboard operation
urp_kawase_blur copied to clipboard

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

Open ryankcameron opened this issue 3 years ago • 1 comments

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 avatar Mar 18 '21 15:03 ryankcameron

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);

ryankcameron avatar Aug 13 '21 11:08 ryankcameron