Mercurial > games > semicongine
diff tests/test_mesh.nim @ 1137:a4aa9f374d44
did: more renaming
author | sam <sam@basx.dev> |
---|---|
date | Tue, 04 Jun 2024 20:51:22 +0700 |
parents | 71315636ba82 |
children | 02e1d2658ff5 |
line wrap: on
line diff
--- a/tests/test_mesh.nim Tue Jun 04 16:51:50 2024 +0700 +++ b/tests/test_mesh.nim Tue Jun 04 20:51:22 2024 +0700 @@ -21,23 +21,23 @@ shaderConfiguration = createShaderConfiguration( name = "default shader", inputs = [ - attr[Vec3f]("position", memoryPerformanceHint = PreferFastRead), - attr[uint16](MATERIALINDEX_ATTRIBUTE, memoryPerformanceHint = PreferFastRead, perInstance = true), - attr[Vec2f]("texcoord_0", memoryPerformanceHint = PreferFastRead), - attr[Mat4]("transform", memoryPerformanceHint = PreferFastWrite, perInstance = true), + Attr[Vec3f]("position", memoryPerformanceHint = PreferFastRead), + Attr[uint16](MATERIALINDEX_ATTRIBUTE, memoryPerformanceHint = PreferFastRead, perInstance = true), + Attr[Vec2f]("texcoord_0", memoryPerformanceHint = PreferFastRead), + Attr[Mat4]("transform", memoryPerformanceHint = PreferFastWrite, perInstance = true), ], intermediates = [ - attr[Vec4f]("vertexColor"), - attr[Vec2f]("colorTexCoord"), - attr[uint16]("materialIndexOut", noInterpolation = true) + Attr[Vec4f]("vertexColor"), + Attr[Vec2f]("colorTexCoord"), + Attr[uint16]("materialIndexOut", noInterpolation = true) ], - outputs = [attr[Vec4f]("color")], + outputs = [Attr[Vec4f]("color")], uniforms = [ - attr[Mat4]("projection"), - attr[Mat4]("view"), - attr[Vec4f]("color", arrayCount = 4), + Attr[Mat4]("projection"), + Attr[Mat4]("view"), + Attr[Vec4f]("color", arrayCount = 4), ], - samplers = [attr[Texture]("baseTexture", arrayCount = 4)], + samplers = [Attr[Texture]("baseTexture", arrayCount = 4)], vertexCode = &""" gl_Position = vec4(position, 1.0) * (transform * (Uniforms.view * Uniforms.projection)); vertexColor = Uniforms.color[{MATERIALINDEX_ATTRIBUTE}];