载入中...
搜索中...
未找到
GrassBillboards.cpp
浏览该文件的文档.
8 const auto channel = [](float value) { return uint32_t(std::lround(std::clamp(value, 0.f, 1.f) * 255.f)); };
9 const uint32_t rgb = (channel(point.tint.r) << 16) | (channel(point.tint.g) << 8) | channel(point.tint.b);
13BillboardMesh buildBillboards(const std::vector<Point> &points, float width, float height, bool alwaysDark) {
EVENGINE_API_BACKENDS BillboardMesh buildBillboards(const std::vector< Point > &points, float width=0.62f, float height=0.95f, bool alwaysDark=false)
Expand a unit rectangle per point. Vertex layout: pos = grass root uv = quad corner in [0,...
Definition GrassBillboards.cpp:13