Cleanup some old unused shader code
This commit is contained in:
@@ -11,21 +11,20 @@ struct ThreeBandSHVector
|
||||
half V2;
|
||||
};
|
||||
|
||||
ThreeBandSHVector SHBasisFunction3(half3 inputVector)
|
||||
ThreeBandSHVector SHBasisFunction3(half3 v)
|
||||
{
|
||||
ThreeBandSHVector result;
|
||||
|
||||
result.V0.x = 0.282095f;
|
||||
result.V0.y = -0.488603f * inputVector.y;
|
||||
result.V0.z = 0.488603f * inputVector.z;
|
||||
result.V0.w = -0.488603f * inputVector.x;
|
||||
result.V0.y = -0.488603f * v.y;
|
||||
result.V0.z = 0.488603f * v.z;
|
||||
result.V0.w = -0.488603f * v.x;
|
||||
|
||||
half3 vectorSquared = inputVector * inputVector;
|
||||
result.V1.x = 1.092548f * inputVector.x * inputVector.y;
|
||||
result.V1.y = -1.092548f * inputVector.y * inputVector.z;
|
||||
result.V1.z = 0.315392f * (3.0f * inputVector.z - 1.0f);
|
||||
result.V1.w = -1.092548f * inputVector.x * inputVector.z;
|
||||
result.V2 = 0.546274f * (inputVector.x - inputVector.y);
|
||||
result.V1.x = 1.092548f * v.x * v.y;
|
||||
result.V1.y = -1.092548f * v.y * v.z;
|
||||
result.V1.z = 0.315392f * (3.0f * v.z - 1.0f);
|
||||
result.V1.w = -1.092548f * v.x * v.z;
|
||||
result.V2 = 0.546274f * (v.x - v.y);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user