Example #1
0
 public RhinoBackground(Client client, CyclesBackground intermediate, Shader existing, string name)
     : base(client, intermediate)
 {
     if (existing != null)
     {
         m_shader = existing;
         m_shader.Recreate();
     }
     else
     {
         m_shader = new Shader(m_client, Shader.ShaderType.World)
         {
             UseMis = true,
             UseTransparentShadow = true,
             HeterogeneousVolume = false,
             Name = name
         };
     }
 }
Example #2
0
 public RhinoBackground(Client client, CyclesBackground intermediate, Shader existing, string name) : base(client, intermediate, name, existing)
 {
 }
Example #3
0
 public RhinoBackground(Client client, CyclesBackground intermediate, Shader existing) : this(client, intermediate, existing, "background")
 {
 }
Example #4
0
 public static RhinoShader CreateRhinoBackgroundShader(Client client, CyclesBackground intermediateBackground, Shader existingShader)
 {
     RhinoShader theShader = new RhinoBackground(client, intermediateBackground, existingShader);
     return theShader;
 }
Example #5
0
 protected RhinoShader(Client client, CyclesBackground intermediateBackground)
 {
     m_client = client;
     m_original_background = intermediateBackground;
 }
Example #6
0
 public RhinoBackground(Client client, CyclesBackground intermediate, Shader existing)
     : this(client, intermediate, existing, "background")
 {
 }
Example #7
0
        public static RhinoShader CreateRhinoBackgroundShader(Client client, CyclesBackground intermediateBackground, Shader existingShader)
        {
            RhinoShader theShader = new RhinoBackground(client, intermediateBackground, existingShader);

            return(theShader);
        }
Example #8
0
 protected RhinoShader(Client client, CyclesBackground intermediateBackground, string name, Shader existing)
 {
     m_client = client;
     m_original_background = intermediateBackground;
     InitShader(name, existing, Shader.ShaderType.World);
 }