We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6075499 commit b83d307Copy full SHA for b83d307
RadeonRays/include/math/matrix.h
@@ -179,14 +179,13 @@ namespace RadeonRays
179
return res*=c;
180
}
181
182
- inline float3 operator * (matrix const& m, float3 const& v)
+ inline float4 operator * (matrix const& m, float4 const& v)
183
{
184
- float3 res;
+ float4 res {0, 0, 0, 0};
185
186
- for (int i=0;i<3;++i)
187
- {
188
- res[i] = 0.f;
189
- for (int j=0;j<3;++j)
+ for (int i = 0; i < 4; ++i) {
+ //res[i] = 0.f;
+ for (int j = 0; j < 4; ++j)
190
res[i] += m.m[i][j] * v[j];
191
192
0 commit comments