Skip to content

Commit

Permalink
fix: Fix albedo texture binding on shader (#3400)
Browse files Browse the repository at this point in the history
Fix albedo texture binding on shader
  • Loading branch information
luanpotter authored Dec 14, 2024
1 parent 65f90f9 commit c380c91
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 c380c91

Please sign in to comment.