fgrain

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: 作业3更正公告 #10191 Score: 0
    fgrain
    Participant

    为什么rasterizer.cpp 中 v = t.toVector4()

    std::array<Vector4f, 3> Triangle::toVector4() const
    {
    std::array<Vector4f, 3> res;
    std::transform(std::begin(v), std::end(v), res.begin(), [](auto& vec) { return Vector4f(vec.x(), vec.y(), vec.z(), 1.f); });
    return res;
    }
    这里不是把v.w()设为1了吗,不是深度值啊

Viewing 1 post (of 1 total)