Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::World::WindSample Struct Reference

Wind field result at one world-space point. More...

#include <WindField.h>

Public Attributes

glm::vec3 velocity { 0.0f }
 Wind velocity at the sample point.
float strength = 0.0f
 Falloff factor in [0, 1] for the selected pocket.
uint32_t pocketId = 0u
 Deterministic identifier for the selected pocket.
bool isInsidePocket = false
 True when the point is inside a generated wind pocket.

Detailed Description

Wind field result at one world-space point.

A disabled field, an empty pocket set, or a point outside every nearby pocket returns the default sample: zero velocity, zero strength, pocketId == 0, and isInsidePocket == false.

Definition at line 61 of file WindField.h.

Member Data Documentation

◆ isInsidePocket

bool Engine::World::WindSample::isInsidePocket = false

True when the point is inside a generated wind pocket.

Definition at line 66 of file WindField.h.

◆ pocketId

uint32_t Engine::World::WindSample::pocketId = 0u

Deterministic identifier for the selected pocket.

Definition at line 65 of file WindField.h.

◆ strength

float Engine::World::WindSample::strength = 0.0f

Falloff factor in [0, 1] for the selected pocket.

Definition at line 64 of file WindField.h.

◆ velocity

glm::vec3 Engine::World::WindSample::velocity { 0.0f }

Wind velocity at the sample point.

Definition at line 63 of file WindField.h.


The documentation for this struct was generated from the following file:
  • /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/World/WindField.h