Difference between revisions of "Community extensions"

From Bakery GPU Lightmapper: Wiki
Jump to navigation Jump to search
(Light Probe Storage)
(Debug tools)
Line 19: Line 19:
 
Simple shader that visualizes UV1 with overlaps.
 
Simple shader that visualizes UV1 with overlaps.
  
=== Debug tools ===
+
=== Debug Tools ===
 
(by Mr F)
 
(by Mr F)
  

Revision as of 17:25, 8 July 2019

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.

Light Probe Storage

(by Eugene Cone)

Download

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. To restore saved probes, press Apply Harmonics or enable one of applyHarmonicsOnEnable/applyHarmonicsOnStart options and start the game.

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.