Synced
ShaderPropertyInspector.ApplyEdit
Section titled “ShaderPropertyInspector.ApplyEdit”
- Applies the edited components of a representative value without replacing unrelated mixed components.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Shaders.ImGui
Declaration
Section titled “Declaration”public static Inno.Rendering.Assets.MaterialValue Inno.Editor.Shaders.ImGui.ShaderPropertyInspector.ApplyEdit(Inno.Rendering.ShaderPropertyType type, Inno.Rendering.Assets.MaterialValue before, Inno.Rendering.Assets.MaterialValue edited, Inno.Rendering.Assets.MaterialValue target)Parameters
Section titled “Parameters”Parameter type: Common exact Shader property type.
Parameter before: Representative value before the control gesture sample.
Parameter edited: Representative value after this sample.
Parameter target: Another selected Material’s current effective value.
Returns
Section titled “Returns”A detached value preserving the target’s untouched channels, texture or sampler.