Search Issue Tracker

Won't Fix

Votes

0

Found in

5.6.1p3

Issue ID

924456

Regression

No

[Shader Compiler] Compile error with overloaded CG methods differing only in precision on OpenGLES2

Shaders

-

Steps to reproduce:

1) Download attached project 'UnityShaderCompileError.zip' and open in Unity
2) Open scene 'testScene'
3) Select 'TestShader' shader in the Project window
4) In Inspector, click on 'Compile and show code'

Observe error in the Console window:
Shader error in 'Custom/TestShader': 'fmodPositive' : function already has a body at line 43 (on gles)

Expected result: No errors in the Console window when shader been compiled for GLES2
Actual result: 'Shader error in 'Custom/TestShader': 'fmodPositive' : function already has a body at line 43 (on gles)' error in the Console window

Reproduced with:
5.5.4p1, 5.6.2p1, 2017.1.0f1, 2017.2.0b1

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.