alexlarsson / gthree

Gthree is a GObject/Gtk+ port of three.js
MIT License
84 stars 13 forks source link

material_set_depth_write(FALSE) issues #43

Closed alexlarsson closed 4 years ago

alexlarsson commented 5 years ago

When you disable depth writes for some object this seem to break rendering of other objects in the scene. For example, disabling it on the booster in gnome-hexl shows this (see TODO in the ship effects code).

alexlarsson commented 4 years ago

This is also visible in examples/clipping if you uncomment the change the line in gthreehelpers.c:

 gthree_material_set_depth_write  (GTHREE_MATERIAL (helper->mesh_material), TRUE); // TODO: Should be FALSE
alexlarsson commented 4 years ago

Also visible in decals.c

alexlarsson commented 4 years ago

fixed