comparison tests/test_materials.nim @ 376:fa38cd28f041

fix: all tests
author Sam <sam@basx.dev>
date Sun, 26 Nov 2023 19:53:00 +0700
parents f4f1474dc70a
children eaf084ba80e5
comparison
equal deleted inserted replaced
375:2388119b2989 376:fa38cd28f041
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;""",