|
Easy3D 3.0.0
|
Per-vertex data consumed by a draw command. More...
#include <render_device.h>
Public Attributes | |
| vec3 | position |
| Position in geometry-local coordinates. | |
| vec3 | normal = vec3(0, 0, 1) |
| Surface normal. | |
| vec4 | color = vec4(1, 1, 1, 1) |
| RGBA vertex color. | |
| vec2 | texcoord = vec2(0, 0) |
| Texture coordinate. | |
| vec4 | highlight = vec4(0) |
Per-vertex data consumed by a draw command.
RGB highlight tint and mix strength in [0,1], applied after texture and lighting. Renderers compose the drawable's per-primitive highlight mask and its selection into the strength. Set consistently on a primitive's corners; overlays ignore it.