载入中...
搜索中...
未找到
eve::graphics::grass::Point结构体 参考

Point public API. 更多...

#include <Grass.h>

Public 属性

glm::vec3 position {0.f}
 
glm::vec3 normal {0.f, 1.f, 0.f}
 
uint32_t id = 0
 
float scale = 1.f
 
float widthScale = 0.f
 Independent horizontal scale; zero retains the uniform scale behavior.
 
glm::vec3 tint {-1.f}
 Linear instance RGB; {-1,-1,-1} preserves legacy untinted encoding.
 

详细描述

Point public API.

在文件 Grass.h 第 74 行定义.

类成员变量说明

◆ id

uint32_t eve::graphics::grass::Point::id = 0

在文件 Grass.h 第 77 行定义.

◆ normal

glm::vec3 eve::graphics::grass::Point::normal {0.f, 1.f, 0.f}

在文件 Grass.h 第 76 行定义.

◆ position

glm::vec3 eve::graphics::grass::Point::position {0.f}

在文件 Grass.h 第 75 行定义.

被这些函数引用 eve::procgen::bakeTerrainGrassFoliage() , 以及 eve::graphics::grass::samplePoisson().

◆ scale

float eve::graphics::grass::Point::scale = 1.f

在文件 Grass.h 第 78 行定义.

◆ tint

glm::vec3 eve::graphics::grass::Point::tint {-1.f}

Linear instance RGB; {-1,-1,-1} preserves legacy untinted encoding.

在文件 Grass.h 第 82 行定义.

◆ widthScale

float eve::graphics::grass::Point::widthScale = 0.f

Independent horizontal scale; zero retains the uniform scale behavior.

在文件 Grass.h 第 80 行定义.


该结构体的文档由以下文件生成: