コード例 #1
0
 /// <summary>
 /// Create a new background/world shader node with given name
 /// </summary>
 /// <param name="name">Name for shader node</param>
 public BackgroundNode(string name) :
     base(ShaderNodeType.Background, name)
 {
     inputs             = new BackgroundInputs(this);
     outputs            = new BackgroundOutputs(this);
     ins.Color.Value    = new float4();
     ins.Strength.Value = 1.0f;
 }
コード例 #2
0
ファイル: BackgroundNode.cs プロジェクト: peca3d/CCSycles
 /// <summary>
 /// Create a new background/world shader node with given name
 /// </summary>
 /// <param name="name">Name for shader node</param>
 public BackgroundNode(string name)
     : base(ShaderNodeType.Background, name)
 {
     inputs = new BackgroundInputs(this);
     outputs = new BackgroundOutputs(this);
     ins.Color.Value = new float4();
     ins.Strength.Value = 1.0f;
 }