Reflection Probe Blend Cubemap#
Rendering / Reflection Probe / Reflection Probe Blend Cubemap
Description#
Compares the Blend Cubemap static method of Reflection Probe class to another value
Parameters#
| Name | Description |
|---|---|
| Src | |
| Dst | |
| Blend | |
| Target |
Code#
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>
using System;
using UnityEngine;
using VisualScript.Icons;
using UnityEngine.Rendering;
namespace VisualScript.Runtime
{
[Title("Reflection Probe Blend Cubemap")]
[Category("Rendering/Reflection Probe/Blend Cubemap")]
[Description("Compares the Blend Cubemap static method of Reflection Probe class to another value")]
[Image(typeof(IconReflectionProbe), ColorTheme.Type.Blue)]
[Parameter("Src")]
[Parameter("Dst")]
[Parameter("Blend")]
[Parameter("Target")]
[Serializable]
public class GenConditionBool_ReflectionProbe_CheckBlendCubemap_4 : Condition
{
[SerializeField] private GetTexture m_Src = new GetTexture();
[SerializeField] private GetTexture m_Dst = new GetTexture();
[SerializeField] private GetNumber m_Blend = new GetNumber();
[SerializeField] private GetTexture m_Target = new GetTexture();
protected override string GetTitle(GameObject source)
{
string className = TextUtils.ThemeAsKeyword("Reflection Probe");
string method = TextUtils.ThemeAsKeyword("Blend Cubemap");
return $"{className} {method} ({this.m_Src}, {this.m_Dst}, {this.m_Blend}, {this.m_Target})";
}
protected override bool Run(Args args)
{
bool value = ReflectionProbe.BlendCubemap(
(Texture) this.m_Src.Get(args),
(Texture) this.m_Dst.Get(args),
(float) this.m_Blend.Get(args),
(RenderTexture) this.m_Target.Get(args)
);
return value;
}
}
}