Skip to content

A simple instanced shader for Monogame with integrated lighting and fog

License

Notifications You must be signed in to change notification settings

captainkidd5/InstancedShader

Repository files navigation

This shows the bread and butter for model instancing in Monogame.

It's an incomplete example as much of the other code is fairly dispersed across my main game project, but this shows the important logic and should help get you started.

showcase

It includes support for up to 20 lights (specular/ambient) and fog.

Fog is currently pretty scuffed so I strongly welcome pull requests to get it ironed out!

Note that you will need to create a content pipeline extensions and use the code from InstancedModelProcessor.cs Then, when adding your assets in the content pipeline choose .FBX importer and the InstancedModelProcessor for the processor.

About

A simple instanced shader for Monogame with integrated lighting and fog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published