Disabled a power-of-two error check as this may be too strict. See test_dims in autotest.cc which dimensions are guaranteed to work with reductions. Other dimensions may also work but are not yet extensively tested
This commit is contained in:
@@ -153,8 +153,8 @@ draw_vertex_buffer(const AcMesh& mesh, const VertexBufferHandle& vertex_buffer,
|
||||
const float max = float(model_reduce_scal(mesh, RTYPE_MAX, vertex_buffer));
|
||||
const float min = float(model_reduce_scal(mesh, RTYPE_MIN, vertex_buffer));
|
||||
*/
|
||||
const float max = 1.f;//float(acReduceScal(RTYPE_MAX, vertex_buffer));
|
||||
const float min = 0.f;//float(acReduceScal(RTYPE_MIN, vertex_buffer));
|
||||
const float max = float(acReduceScal(RTYPE_MAX, vertex_buffer));
|
||||
const float min = float(acReduceScal(RTYPE_MIN, vertex_buffer));
|
||||
const float range = fabsf(max - min);
|
||||
const float mid = max - .5f * range;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user