Skip to content

Commit

Permalink
ShaderGame, use the custom data properly
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmith00000 committed Nov 19, 2024
1 parent 18ed497 commit 6c5e481
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ object ShaderGame extends IndigoShader:
val channel3: Option[AssetPath] = None

val uniformBlocks: Batch[UniformBlock] =
Batch(CustomData.reference)
Batch(CustomData(RGBA.Magenta.toUVVec4))

val shader: ShaderProgram =
ShaderWithData.shader
Expand All @@ -25,7 +25,7 @@ object ShaderGame extends IndigoShader:
final case class CustomData(CUSTOM_COLOR: vec4) extends FragmentEnvReference derives ToUniformBlock
object CustomData:
val reference =
CustomData(RGBA.Magenta.toUVVec4)
CustomData(vec4(0.0f))

object ShaderWithData:

Expand Down

0 comments on commit 6c5e481

Please sign in to comment.