This bug is reporting a problem in the Unity3D product.  The Unity3D
product is a commercial product not supported in Launchpad.

Please see http://unity3d.com/ for product support.

** Changed in: unity
       Status: New => Invalid

** Changed in: unity (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to unity in Ubuntu.
Matching subscriptions: dp-unity
https://bugs.launchpad.net/bugs/1074059

Title:
  Wrong constant in UnityCG.cginc

Status in Unity:
  Invalid
Status in “unity” package in Ubuntu:
  Invalid

Bug description:
  In the shader include file UnityCG.cginc, both functions
  EncodeFloatRGBA() at line 324,
  and DecodeFloatRGBA() at line 333,
  have one constant incorrectly. The last component of

  float4 kEncodeMul = float4(1.0, 255.0, 65025.0, 160581375.0);

  should be 16581375.0 (third power of 255.0), and the last component of

  float4 kDecodeDot = float4(1.0, 1/255.0, 1/65025.0, 1/160581375.0);

  should be 1/16581375.0 so that the encoding works properly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/unity/+bug/1074059/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to