From 6c2cf2dc3452254fa7b2248e4f02ce404cb708b5 Mon Sep 17 00:00:00 2001 From: davesmith00000 Date: Mon, 18 Nov 2024 23:03:56 +0000 Subject: [PATCH] ShaderGame, use the custom data properly --- .../shader/src/main/scala/com/example/shader/ShaderGame.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indigo/shader/src/main/scala/com/example/shader/ShaderGame.scala b/indigo/shader/src/main/scala/com/example/shader/ShaderGame.scala index df15fa7e0..e426de43e 100644 --- a/indigo/shader/src/main/scala/com/example/shader/ShaderGame.scala +++ b/indigo/shader/src/main/scala/com/example/shader/ShaderGame.scala @@ -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 @@ -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: