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

'outSurfaceData' not completely initialized error occured #3

Open
ttoowa opened this issue Dec 1, 2020 · 1 comment
Open

'outSurfaceData' not completely initialized error occured #3

ttoowa opened this issue Dec 1, 2020 · 1 comment

Comments

@ttoowa
Copy link

ttoowa commented Dec 1, 2020

When I import a package, the following error occurs:

Shader error in 'Universal Render Pipeline/Stylized Lit': 'InitializeStandardLitSurfaceData': output parameter 'outSurfaceData' not completely initialized at

This issue can be resolved by adding the following to the 'StylizedLitInput.hlsl' line 85

inline void InitializeStandardLitSurfaceData(float2 uv, out SurfaceData outSurfaceData)
{
    // Added Line
    outSurfaceData = (SurfaceData)0;

    half4 albedoAlpha = SampleAlbedoAlpha(uv, TEXTURE2D_ARGS(_BaseMap, sampler_BaseMap));
    outSurfaceData.alpha = Alpha(albedoAlpha.a, _BaseColor, _Cutoff);
@madumpa
Copy link
Owner

madumpa commented Dec 2, 2020

I applied it as you said. Thank you!

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

2 participants