Easy3D 3.0.0
Loading...
Searching...
No Matches
Vertex Struct Reference

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)
 

Detailed Description

Per-vertex data consumed by a draw command.

Examples
Tutorial_202_Viewer_imgui, and Tutorial_403_PointSelection.

Member Data Documentation

◆ highlight

vec4 highlight = vec4(0)

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.


The documentation for this struct was generated from the following file: