Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
gurki committed May 19, 2019
2 parents 49b77ac + e21cffb commit 7380891
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [v1.1.1] - 2019-05-19

## Fixed
- Fix `LCH` interpolation after `HCL` re-work


## [v1.1.0] - 2019-05-19

## Added
Expand Down
Binary file modified docs/images/interpolations/lerpLch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ col_t lerp(
{
col_t delta = lch2 - lch1;

if ( delta.x > glm::pi<float>() ) {
delta.x -= glm::two_pi<float>();
} else if ( delta.x < - glm::pi<float>() ) {
delta.x += glm::two_pi<float>();
if ( delta.z > glm::pi<float>() ) {
delta.z -= glm::two_pi<float>();
} else if ( delta.z < - glm::pi<float>() ) {
delta.z += glm::two_pi<float>();
}

return lch1 + t * delta;
Expand Down

0 comments on commit 7380891

Please sign in to comment.