|
|
|
|
|
|
|
|
|
|
public SamplerStateNode() |
|
|
|
{ |
|
|
|
name = "SamplerState"; |
|
|
|
name = "Sampler State"; |
|
|
|
UpdateNodeAfterDeserialization(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
private const string kOutputSlotName = "Sampler Output"; |
|
|
|
private const string kOutputSlotName = "Out"; |
|
|
|
|
|
|
|
public sealed override void UpdateNodeAfterDeserialization() |
|
|
|
{ |
|
|
|
|
|
|
{ |
|
|
|
overrideReferenceName = GetVariableNameForNode(), |
|
|
|
generatePropertyBlock = false, |
|
|
|
|
|
|
|
value = new TextureSamplerState() |
|
|
|
{ |
|
|
|
filter = m_filter, |
|
|
|
|
|
|
public override string GetVariableNameForNode() |
|
|
|
{ |
|
|
|
string ss = name + "_" |
|
|
|
+ Enum.GetName(typeof(TextureSamplerState.FilterMode), filter) + "_" |
|
|
|
+ Enum.GetName(typeof(TextureSamplerState.WrapMode), wrap) + "_sampler;"; |
|
|
|
+ Enum.GetName(typeof(TextureSamplerState.FilterMode), filter) + "_" |
|
|
|
+ Enum.GetName(typeof(TextureSamplerState.WrapMode), wrap) + "_sampler"; |
|
|
|
return ss; |
|
|
|
} |
|
|
|
} |