Search Issue Tracker

Fixed in 2018.1.X

Fixed in 2017.2.X, 2017.4.X

Votes

2

Found in

2017.2.0p1

Issue ID

962811

Regression

No

Standard Roughness setup shader is not building correctly for Android builds when using OpenGLES3.0

Mobile Graphics

-

The Standard Shader (Roughness Setup) that was introduced in 2017.2 is not building for Android when using OpenGLES3.0 and the build fails with errors.

To reproduce:
1. Create a new project and set the platform to Android.
2. Create a new material and use the Standard (Roughness setup) shader option
3. Create a cube and assign the material to the cube.
4. Make sure that OpenGLES3.0 is selected as graphics API and build the project.

Actual Result: The build fails with the following errors

Shader error in 'Standard (Roughness setup)': 'RoughnessSetup_Reflectivity' : no matching overloaded function found at /UnityVersions/Unity 2017.2.0p1_PatchRelease/Editor/Data/CGIncludes/UnityStandardCoreForwardSimple.cginc(111) (on gles)

Compiling Vertex program with DIRECTIONAL
Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF3 UNITY_NO_FULL_STANDARD_SHADER SHADER_API_MOBILE UNITY_HARDWARE_TIER1 UNITY_COLORSPACE_GAMMA

Shader error in 'Standard (Roughness setup)': undeclared identifier 'RoughnessSetup_Reflectivity' at /UnityVersions/Unity 2017.2.0p1_PatchRelease/Editor/Data/CGIncludes/UnityStandardCoreForwardSimple.cginc(111) (on gles3)

Compiling Vertex program with DIRECTIONAL
Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF3 UNITY_NO_FULL_STANDARD_SHADER SHADER_API_MOBILE UNITY_HARDWARE_TIER1 UNITY_COLORSPACE_GAMMA

Shader error in 'Standard (Roughness setup)': undeclared identifier 'RoughnessSetup_Reflectivity' at /UnityVersions/Unity 2017.2.0p1_PatchRelease/Editor/Data/CGIncludes/UnityStandardCoreForwardSimple.cginc(111) (on vulkan)

Compiling Vertex program with DIRECTIONAL SHADOWS_SCREEN
Platform defines: UNITY_NO_DXT5nm UNITY_NO_RGBM UNITY_ENABLE_REFLECTION_BUFFERS UNITY_NO_CUBEMAP_ARRAY UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF3 UNITY_NO_FULL_STANDARD_SHADER SHADER_API_MOBILE UNITY_HARDWARE_TIER1 UNITY_COLORSPACE_GAMMA

Expected Result: There should be no errors and the build shouldn't fail.

Extra notes:
There are no build errors if OpenGLES2.0 or Vulkan is selected as Graphic API

Reproducible: 2017.2.0a4, 2017.2.0b1, 2017.2.0f3, 2017.2.0p1 and 2018.1.0a

Comments (22)

  1. OmarVectorX

    Nov 03, 2017 14:20

    one fast fix worked for me, when I delete the library folder and the project start to load once again, the build work, but I've to do this every time I face the same issue, so its definitely a bug.

  2. OmarVectorX

    Oct 27, 2017 09:51

    I've the same problem too, I thought something wrong with my project.

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.