taichi-dev / taichi

Productive, portable, and performant GPU programming in Python.
https://taichi-lang.org
Apache License 2.0
25.54k stars 2.29k forks source link

Texture on a Mesh (GGUI) ? #8595

Open ucacaxm opened 1 week ago

ucacaxm commented 1 week ago

hi,

Thanks for taishi, it is so easy to code parallel-GPU simulation !

Is there a way to add a texture to a mesh in the GGUI ? Something like this scene.mesh(self.vertices, indices=self.indices, normals=self.normals, uv=self.tex_coords, texture=self.tex, two_sided=True)

I also would like to add shadows (or basically add my custom shaders).

Maybe the best way to do that is to interop with my own C++/OpenGL code ?

Thanks, best