Skip to content

Commit

Permalink
fix: Fix albedo texture binding on shader [flame_3d]
Browse files Browse the repository at this point in the history
  • Loading branch information
luanpotter committed Dec 14, 2024
1 parent 65f90f9 commit 09bfd81
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class ColorTexture extends Texture {
List.filled(
width * height,
// Convert to a 32 bit value representing this color.
(color.a ~/ 255) << 24 |
(color.r ~/ 255) << 16 |
(color.g ~/ 255) << 8 |
(color.b ~/ 255),
(color.a * 255).round() << 24 |
(color.r * 255).round() << 16 |
(color.g * 255).round() << 8 |
(color.b * 255).round(),
),
).buffer.asByteData(),
width: width,
Expand Down

0 comments on commit 09bfd81

Please sign in to comment.