Community extensions

From Bakery GPU Lightmapper: Wiki
Revision as of 18:46, 17 June 2021 by Mr F (talk | contribs) (Amplify shaders)
Jump to navigation Jump to search

This page lists some additional and user-made scripts, shaders and extensions that can help you in specific scenarios.

If you want to submit any extensions, contact me on Unity forum, Twitter or anywhere else.

Better Lit Shader

(by Jason Booth)

The Better Lit shader is an improved Lit shader which runs across all render pipelines, and offers a number of multi-layer and procedural techniques to texturing. Supports all Bakery shader features out of the box.

Asset Store


Amplify shaders


Updated ASE shaders for URP, with SH lightmap and Volume support (with specular) by Not_Lonely:

Link


Previous ASE shaders by Ben Woodford:

Github Link

Allows using Bakery SH lightmaps with specular in Amplify.

Lightmap Swapper & Light Probe Storage

(by Eugene Cone)

Lightmap/probe switching

Download

  • Lightmap swapper

- Put this script onto the root of your lightmap group.

- Assign a new lightmap to the New Lightmap slot.

- Assign Lightprobe Storage to the Lp Storage slot (if you have one).

- Press Apply New Lightmap. Script will try to find a mesh with a valid lightmap index and use this index to swap an original lightmap with the new one.

  • Light Probe Storage

Created for use with multi-scene lightmap baking (Unity tends to store LightProbes data in a wrong Lighting Asset, thus making your lightprobes completely black upon loading the project) and runtime lightmap/lightprobe swapping (like turning lights on and off). Put this script onto LightProbeGroup you want to save and press Grab Harmonics after baking the Lightprobes. To restore saved probes, press Apply Harmonics or enable one of applyHarmonicsOnEnable/applyHarmonicsOnStart options and start the game. If for some reason you get warning "Can't find harmonics #X", then set precision slider to 0.02 and press button again - this should help.

GIF GIF 2

UV Debug Shader

(by Mr F)

UV debugging

Download

Simple shader that visualizes UV1 with overlaps.

Debug Tools

(by Mr F)

Download

A small suite of debugging tools I use for development. Adds some new options to Bakery menu:

  • Debug select storage: selects the invisible storage object in the scene so you can see actual saved values (lightmap, renderer, light lists, etc),
  • Show storage: makes the invisible object visible.
  • Clear useless data: clears some temporary data on the invisible object. This shouldn't be needed, as it's always performed after the bake anyway.
  • Debug asset: if "Adjust UV padding" was used to alter the model, will log saved mesh/padding settings of the selected asset.
  • Clear asset meta: clears all Bakery UV padding related settings from selected assets.

Vertex Lightmap To Mesh Asset

(by Mr F)

Download

Vertex color baking uses additionalVertexStreams to bind an additional vertex buffer to the graphics pipeline without breaking the link with the original mesh asset; but additionalVertexStreams cannot be batched/instanced.

This tool adds "Bakery/Utilities/New mesh asset with vertex color" menu option that'll generate a new complete mesh asset out of every selected GameObject having MeshRenderer/MeshFilter. These can be then used with batching.

New assets are saved to Assets/VCMesh folder.

Batch scene baker

(by Mr F)

Batch scene baker

Download

Script to automatically bake multiple scenes, one by one (lightmaps, light probes and reflection probes). All dialog boxes during the bake will be suppressed.