FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
visual::sky::CloudShadowMap Struct Reference

A built map: transmittance per texel over a square, as made by CloudShadowField::Build.

#include <CloudShadow.h>

+ Collaboration diagram for visual::sky::CloudShadowMap:

Public Member Functions

double At (double x, double y, const CloudDrift &now) const
 

Public Attributes

int resolution = 0
 Texels per side.
 
double originX = 0.0
 North of texel row 0's edge [m].
 
double originY = 0.0
 East of texel column 0's edge [m].
 
double size = 0.0
 Side [m].
 
CloudDrift drift
 The clouds' drift it was built with.
 
std::vector< float > transmittance
 resolution^2, index (j * resolution + i), i along north, j along east.
 

Member Function Documentation

◆ At()

double visual::sky::CloudShadowMap::At ( double  x,
double  y,
const CloudDrift &  now 
) const

Bilinear lookup at (x, y) for clouds drifted to now (the map is shifted by the drift since it was built); 1 outside the map or without one.


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