Esempio n. 1
0
 public object[] GetCompiledData(Node node)
 {
     ShaderNodeDataTypes.InputNodeType shaderNode = new ShaderNodeDataTypes.InputNodeType();
       shaderNode.CompiledHeaderString = "uniform sampler2D {OUTPUT1_NAME} : register({REGISTER_NUM});";
       return new[] {shaderNode};
 }
Esempio n. 2
0
 public object[] GetCompiledData(Node node)
 {
     ShaderNodeDataTypes.InputNodeType shaderNode = new ShaderNodeDataTypes.InputNodeType();
      ShaderTypes.float3 f3 = (ShaderTypes.float3)node.Items.FirstOrDefault(item => item.Tag == "out").OutputData;
      shaderNode.CompiledHeaderString = "uniform float3 {OUTPUT1_NAME} = {" + f3.x.ToString(CultureInfo.InvariantCulture) + "," +
     f3.y.ToString(CultureInfo.InvariantCulture) + "," + f3.z.ToString(CultureInfo.InvariantCulture) + "};";
      return new[] {shaderNode};
 }