Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Adding depth option to the texture of guiOffscreenCanvas #1829
These small changes fix the rendering in the named texture of a guiOffscreenCanvas with 3d views.
Creating the gui with the field "useDepth" as true enables the fix.
-Example of its use-
After that, start the desert level. If you add a few TSStatic and half-bury them in the terrain the fix will be shown better.
Now, use in the console:
This will create a guiOffscreenCanvas with the fix disabled as its useDepth field is zero.
You'll see a small window showing the rear view of the soldier. This window has depth errors like objects not being correctly covered by the terrain.
Delete the window and the guiOffscreenCanvas with:
to create a guiOffscreenCanvas with the fix enabled (useDepth field is true).
Now the window should show the objects being correctly rendered.