comparison tests/test_collision.nim @ 1137:a4aa9f374d44

did: more renaming
author sam <sam@basx.dev>
date Tue, 04 Jun 2024 20:51:22 +0700
parents 71315636ba82
children 02e1d2658ff5
comparison
equal deleted inserted replaced
1136:71315636ba82 1137:a4aa9f374d44
15 15
16 const 16 const
17 shaderConfiguration = createShaderConfiguration( 17 shaderConfiguration = createShaderConfiguration(
18 name = "default shader", 18 name = "default shader",
19 inputs = [ 19 inputs = [
20 attr[Mat4]("transform", memoryPerformanceHint = PreferFastRead, perInstance = true), 20 Attr[Mat4]("transform", memoryPerformanceHint = PreferFastRead, perInstance = true),
21 attr[Vec3f]("position", memoryPerformanceHint = PreferFastRead), 21 Attr[Vec3f]("position", memoryPerformanceHint = PreferFastRead),
22 attr[Vec4f]("color", memoryPerformanceHint = PreferFastRead), 22 Attr[Vec4f]("color", memoryPerformanceHint = PreferFastRead),
23 ], 23 ],
24 intermediates = [attr[Vec4f]("colorout")], 24 intermediates = [Attr[Vec4f]("colorout")],
25 uniforms = [attr[Mat4]("perspective")], 25 uniforms = [Attr[Mat4]("perspective")],
26 outputs = [attr[Vec4f]("fragcolor")], 26 outputs = [Attr[Vec4f]("fragcolor")],
27 vertexCode = """gl_Position = vec4(position, 1.0) * (transform * Uniforms.perspective); colorout = color;""", 27 vertexCode = """gl_Position = vec4(position, 1.0) * (transform * Uniforms.perspective); colorout = color;""",
28 fragmentCode = """fragcolor = colorout;""", 28 fragmentCode = """fragcolor = colorout;""",
29 ) 29 )
30 30
31 var engine = initEngine("Test collisions") 31 var engine = initEngine("Test collisions")