freezy / VisualPinball.Engine

:video_game: Visual Pinball Engine for Unity
https://docs.visualpinball.org
GNU General Public License v3.0
417 stars 62 forks source link

Table import: Set GPU Instancing flag and shared material #231

Open Pandelii opened 4 years ago

Pandelii commented 4 years ago

For hybrid renderer instancing, duplicate meshes more or less need to share the same material. Some values can be overridden on a per instances basis. The GPU instancing flag also needs to be set. This should probably be set by default, though it may come with overhead that im not aware of when set for materials that will not actually be used in instancing so it may be best to pair it with meshes that we know are shared.

freezy commented 4 years ago

Dependent on #230.