comparison tests/test_materials.nim @ 837:0d46e6638bd6

fix: all tests
author Sam <sam@basx.dev>
date Sun, 26 Nov 2023 19:53:00 +0700
parents 6001037da8c2
children eaf084ba80e5
comparison
equal deleted inserted replaced
836:3a61608f5206 837:0d46e6638bd6
48 intermediates=[ 48 intermediates=[
49 attr[Vec2f]("uvout"), 49 attr[Vec2f]("uvout"),
50 ], 50 ],
51 uniforms=[attr[float32]("test2", arrayCount=2)], 51 uniforms=[attr[float32]("test2", arrayCount=2)],
52 samplers = @[ 52 samplers = @[
53 attr[Texture]("tex1", arrayCount=2), 53 attr[Texture]("tex1", arrayCount=1),
54 attr[Texture]("tex2", arrayCount=2), 54 attr[Texture]("tex2", arrayCount=1),
55 ], 55 ],
56 outputs=[attr[Vec4f]("color")], 56 outputs=[attr[Vec4f]("color")],
57 vertexCode=""" 57 vertexCode="""
58 gl_Position = vec4(position.x, position.y + sin(Uniforms.test2[1]) / Uniforms.test2[1] * 0.5, position.z, 1.0); 58 gl_Position = vec4(position.x, position.y + sin(Uniforms.test2[1]) / Uniforms.test2[1] * 0.5, position.z, 1.0);
59 uvout = uv;""", 59 uvout = uv;""",