Search Issue Tracker

Duplicate

Votes

0

Found in

2018.2.0a3

2018.2.0a8

Issue ID

1022977

Regression

Yes

[HDRP] Multiple shader errors occur on launching High Definition template

Graphics - General

-

Multiple shader errors occur on launching High Definition template

Steps to Repro:
1. Open unity with High Definition template
2. Observe there are multiple shaders errors
3. Go to file > player settings > other settings
4. checkmark allow unsafe code property
5. Window > package manager
6. Update high-end SRP template
7. Observe the shader errors are now resolved
8. Observe the new error

Error:
GI: Setting up material 'Cube_Mat' failed. Does your shader have compilation errors? Object 'Cube' will not be affecting GI.

9. Restart the project observe that a new error now appears and the previous errors are disappeared. The following error occurs every time on restarting the editor, I suspect the shader file is missing. Also, note that sometimes materials won't load the project.

Error:
Shader error in 'HDRenderPipeline/Lit': failed to open source file: 'CoreRP/ShaderLibrary/Common.hlsl' at line 282 (on d3d11)

Compiling Vertex program with DIRLIGHTMAP_COMBINED DYNAMICLIGHTMAP_ON _NORMALMAP_TANGENT_SPACE _BLENDMODE_PRESERVE_SPECULAR_LIGHTING
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR

Environment:
Windows 10, Mac 10.13

Occurring with:
2018.2.0a8, 2018.2.0a3

Note that templates available from 2018.2.0a3 onwards

Working with:
2018.1.0b13

Comments (1)

  1. SeanSo

    May 05, 2018 19:12

    I can't find the bug that this is a duplicate of. This occurs with the lightweight RP as well.
    1.1.5 to be specific
    Whether I start with a template or manually import via the Package Manager, the result is the same IF I import 1.1.5
    Manually selecting 1.1.4 and all works as expected.

    1.1.4 works fine
    2018.2.0b3
    win10

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.