pmh47 / dirt

DIRT: a fast differentiable renderer for TensorFlow
MIT License
312 stars 63 forks source link

how to directly bind RGB to the vertices of each 3D model when rendering? #79

Closed Frank-Dz closed 4 years ago

Frank-Dz commented 4 years ago

In the dirt, how to directly bind RGB to the vertices of each 3D model when rendering, instead of using UVmap-based textures. Best show some demo codes~

Thanks in advance! Best,

pmh47 commented 4 years ago

samples/simple.py shows how to do this. If instead you want per-pixel not per-vertex lighting, see samples/deferred.py.