diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-05-10 06:41:07 -0400 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-05-10 06:42:45 -0400 |
commit | 949907125f6f05937f3357c5ddc85a2e7380cf91 (patch) | |
tree | f65548a276314f540265ace695dd74f8ab050a3a /src/arap.cpp | |
parent | bbcfd7f0ff4415e26bf05e0b8660f94bfca94103 (diff) |
tile fix and lighting fix
Diffstat (limited to 'src/arap.cpp')
-rw-r--r-- | src/arap.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/arap.cpp b/src/arap.cpp index 2d952ae..d1af7b5 100644 --- a/src/arap.cpp +++ b/src/arap.cpp @@ -99,7 +99,9 @@ void ARAP::update(double seconds) //std::cout << "max: " << max << std::endl; FoamConstants foam = m_ocean.getFoamConstants(); - m_foam_shape.setFoamInputs(m_ocean.m_vertices, foam.wavelengths, foam.k_vectors, foam.texCoords); + std::vector<float> tiled_wavelengths = m_ocean.get_tiled_wavelengths(); + std::vector<Eigen::Vector2f> tiled_k_vectors = m_ocean.get_tiled_k_vectors(); + m_foam_shape.setFoamInputs(m_ocean.get_vertices(), tiled_wavelengths, tiled_k_vectors, foam.texCoords); m_time += m_timestep; |