Skip to content

Commit

Permalink
🐛 [Nodes] Fix missing conversions between Float_with_alpha and Hue / …
Browse files Browse the repository at this point in the history
…Int / etc.
  • Loading branch information
JulesFouchy committed Nov 7, 2023
1 parent 69e210d commit b28be1a
Show file tree
Hide file tree
Showing 9 changed files with 4,467 additions and 2,751 deletions.
2 changes: 1 addition & 1 deletion Cool
6 changes: 3 additions & 3 deletions Nodes/12 Image Blend/Over (Paint).clbnode
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ sRGB_PremultipliedA main(sRGB_PremultipliedA Foreground)
{
float new_alpha = Foreground.a + (1. - Foreground.a) * 'Background'.a;
return vec4(
premultiply(
Cool_premultiply_color(
mixbox_lerp(
unpremultiply('Background'.rgb, 'Background'.a),
unpremultiply(Foreground.rgb, Foreground.a),
Cool_unpremultiply_color('Background'.rgb, 'Background'.a),
Cool_unpremultiply_color(Foreground.rgb, Foreground.a),
Foreground.a
),
new_alpha
Expand Down
3 changes: 3 additions & 0 deletions src/Module_Nodes/CodeGen_implicit_conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

namespace Lab {

#include "generated/def_implicit_color_conversions.inl"
#include "generated/def_implicit_conversions.inl"

auto gen_implicit_conversion(PrimitiveType from, PrimitiveType to, CodeGenContext& context) // NOLINT(readability-function-cognitive-complexity)
-> std::optional<std::string>
{
Expand Down
Loading

0 comments on commit b28be1a

Please sign in to comment.