Search Issue Tracker

Fixed in Unity 2018.1

Votes

0

Found in

2017.1.0p2

Issue ID

955176

Regression

Yes

Building Standalone throws ... program 'frag_surf': Unrecognized sampler 'samplerunity_lightmap' .. error with specific shaders

Shaders

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 2Core functionality majorly impacted

Steps to reproduce:
1. Download and open the attached project
2. Build for standalone
3. If no error is thrown, repeat step 2

Expected result: no error
Actual result:
"Error building Player: Shader error in 'Custom/ColorPicker': Fragment program 'frag_surf': Unrecognized sampler 'samplerunity_lightmap' - does not match any texture and is not a recognized inline name (should contain filter and wrap modes)."
(on d3d11)

Reproduced on 5.6.0b2, 5.6.3p4, 2017.1.1p4, 2017.2.0f1, 2017.3.0b3
Not reproduced on 5.5.4p2, 5.6.0b1
Regression introduced in 5.6.0b2

Problem disappears if the user goes to Edit -> Project Settings -> Graphics Settings and sets Shader Stripping -> Lightmap Modes to Automatic.

FIXED 2018.3.0a6

Comments (5)

  1. F17a1ed5019a8cfca6af49d66c58c7ae?d=mm

    glitchers

    Nov 07, 2018 11:48

    My mistake - it doesn't fix the issue - the issue just doesn't occur 100% of the time.

  2. F17a1ed5019a8cfca6af49d66c58c7ae?d=mm

    glitchers

    Nov 07, 2018 09:58

    I had this issue because my custom shader was using the fallback "Diffuse". I changed it to "Standard" and the issue went away.

  3. 8d6089d4f771439b8b27e4692975ed75?d=mm

    sbsmith

    Jun 12, 2018 23:07

    I am seeing this in 2017.3 and the suggested workaround does not solve the issue.

  4. D6d28da745450503a1747ab9c281807b?d=mm

    Jonas-Neuston

    May 14, 2018 17:42

    Is this going to be fixed for 2017?

  5. 42f9104201fdc042e5f40443b54c6303?d=mm

    Erik-Hegen

    Feb 19, 2018 14:02

    FIXED 2018.3.0a6??
    I'll guess you mean Unity 2017.3?

All about bugs

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