With all input values set to 1, the expected outputs from top to bottom are [1, 2, 3, 4]. We instead get [3, 2, 3, 3] here as shown by the tiling of the texture (and the hover debug tool ive been using)
The shader code seems to generate correctly, which is good
My Observations
This seems to be an issue of the preview shader Preview_DotProductOpNode doing the dot product of _A.rgb and _B.rgb
knowing this is the fragment structure, I suspect the problem is as such:
Amplify Version: 1.9.6.3
I've come across this one a couple times, but it seems like the dot product nodes preview is incorrect for float inputs and float4 inputs.
Replication Steps
Expected Functionality
Following the component definition of the dot product:
Example of the problem
With all input values set to 1, the expected outputs from top to bottom are [1, 2, 3, 4]. We instead get [3, 2, 3, 3] here as shown by the tiling of the texture (and the hover debug tool ive been using)
The shader code seems to generate correctly, which is good
My Observations
This seems to be an issue of the preview shader
Preview_DotProductOpNode
doing the dot product of_A.rgb
and_B.rgb
knowing this is the fragment structure, I suspect the problem is as such: