Describe the bug
I have set the material.clipSpaceTransform, but it does not change the value of the z-component. The code is as follows 。The output of the vertex shader in RenderDoc is as follows: According to the clipSpaceTransform in the following code, the z-value should be 0.
`
filament::math::float3 QUAD_VERTICES_TEST[4] = {
{-2, -2 , 0.3},
{2 , -2 , 0.3},
{2 , 2 , 0.3},
{-2 , 2 , 0.3}
};
uint16_t QUAD_INDICES[6] = { 0, 1, 2 ,0 , 2 , 3 };
Describe the bug I have set the material.clipSpaceTransform, but it does not change the value of the z-component. The code is as follows 。The output of the vertex shader in RenderDoc is as follows: According to the clipSpaceTransform in the following code, the z-value should be 0.
`
filament::math::float3 QUAD_VERTICES_TEST[4] = {
{-2, -2 , 0.3},
{2 , -2 , 0.3},
{2 , 2 , 0.3},
{-2 , 2 , 0.3}
};
uint16_t QUAD_INDICES[6] = { 0, 1, 2 ,0 , 2 , 3 };
void GussianSplat::setupTest(filament::Engine pEngein, filament::Scene pScene, filament::View* pView) { filament::math::mat4f clipTran; clipTran[0] = { 0.25 , 0 , 0 , 0 }; clipTran[1] = { 0 , 0.25 , 0 , 0 }; clipTran[2] = { 0 , 0 , 0 ,0 }; clipTran[3] = { 0 , 0 , 0 ,1 };
)SHADER";
)SHADER";
}` May I ask what the reason is for this?
To Reproduce Steps to reproduce the behavior:
Expected behavior The transform Can change the z value
Screenshots
Logs
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context