Class BakeAmbientOcclusion
Compute the Ambient Occlusion (AO) influence between each selected object, and bake it in textures.
Inheritance
Inherited Members
Namespace: UnityEditor.PixyzPlugin4Unity.Actions
Assembly: Unity.Pixyz.Plugin4Unity.Editor.dll
Syntax
public class BakeAmbientOcclusion : PixyzAction
Fields
Name | Description |
---|---|
advancedUVParameters | Advanced Map storage parameters |
advancedVertexColorParameters | Advanced Vertex Color storage parameters |
denoiseIntensity | Adjusts the strength of noise reduction in the output AO values. Higher settings provide a cleaner result by reducing graininess but may slightly soften fine details. Select based on your desired balance between clarity and detail preservation. |
groundIncidence | A fictive plane will be used to simulate the ground incidence on the object. |
mapsResolution | Generated texture size, per mesh. |
resolution | Custom resolution for generated textures size per mesh. |
samples | Custom Samples per pixel value. |
samplesPerPixel | Number of rays used to calculate the occlusion value for each pixel in the rendered image. Increasing this value will improve the quality and accuracy of the ambient occlusion effect by providing more detailed and smoother maps of shadows and shading, reducing the need for a denoiser. However, higher samples per pixel lead to longer processing times. |
storageMethod | Define how to store the ambient occlusion. |
Properties
Name | Description |
---|---|
HierarchyMode | Returns how the hierarchy is synced with pixyz |
Icon | Icon to be displayed in Toolbox and Rule Engine. If null, no icon will be displayed. To support light and dark themes: specify light theme path. Dark theme file name should be the same with a "d_" prefix. To support selected and unselected states: selected files names should be the same as main files but with a "s_" prefix. |
Id | The id of the Acton implementation. This id should be unique and is readonly. The id is the actual reference if the Action is serialized (in a set of RuleEngine Rules for example). |
MenuPathRuleEngine | The menu path for the RuleEngine. |
MenuPathToolbox | The menu path for the Toolbox. |
MeshSyncType | Returns how the meshes are synced back from Pixyz to Unity |
Priority | The order to use when placing this Action in a list. If the value is -1, the display name will be used instead; |
SyncMaterials | Returns how material are synced with pixyz |
Tooltip | Returns the tooltip. |
Methods
Name | Description |
---|---|
GetErrors() | Virtual method for Error checks before execution. |
GetInfo() | Virtual method for Info checks before execution. |
GetWarnings() | Virtual method for Warning checks before execution. |
PostProcess(ref IList<GameObject>) | Use to modify the output after the 'Run' method is executed. Always executed on the main thread. |
PreProcess(ref IList<GameObject>) | Use to validate/modify the input before the 'Run' method is executed. Always executed on the main thread. |
Run(OccurrenceList) | Runs in Pixyz context. To be overriden in the derived class. |
Validate(object) | Called to validated/check the new input (new selection in the editor with toolbox action, or before running action in ruleset) |