|
|
|
|
|
|
}";
|
|
|
|
} |
|
|
|
|
|
|
|
static string Unity_Blend_LinearLightAddSub( |
|
|
|
static string Unity_Blend_LinearLight( |
|
|
|
[Slot(0, Binding.None)] DynamicDimensionVector A, |
|
|
|
[Slot(1, Binding.None)] DynamicDimensionVector B, |
|
|
|
[Slot(2, Binding.None)] out DynamicDimensionVector Out) |
|
|
|
|
|
|
{ |
|
|
|
Out = B + 2.0 * A - 1.0; |
|
|
|
Out = B < 0.5 ? max(A + (2 * B) - 1, 0) : min(A + 2 * (B - 0.5), 1); |
|
|
|
|
|
|
|
/*static string Unity_Blend_LinearLightAddSub( |
|
|
|
[Slot(0, Binding.None)] DynamicDimensionVector A, |
|
|
|
[Slot(1, Binding.None)] DynamicDimensionVector B, |
|
|
|
[Slot(2, Binding.None)] out DynamicDimensionVector Out) |
|
|
|
{ |
|
|
|
return |
|
|
|
@"
|
|
|
|
{ |
|
|
|
Out = B + 2.0 * A - 1.0; |
|
|
|
}";
|
|
|
|
}*/ |
|
|
|
|
|
|
|
static string Unity_Blend_Multiply( |
|
|
|
[Slot(0, Binding.None)] DynamicDimensionVector A, |
|
|
|