Mercurial > games > semicongine
diff tests/test_mesh.nim @ 244:f52fccedf5ab
did: adjust to new API
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 22 May 2023 00:51:41 +0700 |
parents | f05497ef8fd2 |
children | a19c9d089f25 |
line wrap: on
line diff
--- a/tests/test_mesh.nim Mon May 22 00:50:41 2023 +0700 +++ b/tests/test_mesh.nim Mon May 22 00:51:41 2023 +0700 @@ -18,13 +18,13 @@ ] vertexOutput = @[attr[Vec4f]("vertexColor")] fragOutput = @[attr[Vec4f]("color")] - uniforms = @[attr[Mat4]("transform"), attr[Vec4f]("material_colors", arrayCount=16), ] + uniforms = @[attr[Mat4]("transform"), attr[Vec4f]("material_color", arrayCount=16), ] vertexCode = compileGlslShader( stage=VK_SHADER_STAGE_VERTEX_BIT, inputs=vertexInput, outputs=vertexOutput, uniforms=uniforms, - main="""gl_Position = vec4(position, 1.0) * Uniforms.transform; vertexColor = Uniforms.material_colors[material];""" + main="""gl_Position = vec4(position, 1.0) * Uniforms.transform; vertexColor = Uniforms.material_color[material];""" ) fragmentCode = compileGlslShader( stage=VK_SHADER_STAGE_FRAGMENT_BIT,