Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ryankcameron opened this issue Mar 18, 2021 · 1 comment

Comments

@ryankcameron
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant