Exemplo n.º 1
0
 public MaterialShaderManager()
 {
     shaders                   = new Dictionary <string, ShaderInfo>();
     depthPeelingShaders       = new Dictionary <string, ShaderInfo>();
     defaultFragmentShader     = ShaderLoader.CompileShaderFromFile(defaultFragmentShaderPath, ShaderType.FragmentShader);
     depthPeelerFragmentShader = ShaderLoader.CompileShaderFromFile(depthPeelerFragmentShaderPath, ShaderType.FragmentShader);
     DepthPeelingData          = new DepthPeelingData();
 }
Exemplo n.º 2
0
 public MaterialShaderManager()
 {
     shaders = new Dictionary<string, ShaderInfo>();
     depthPeelingShaders = new Dictionary<string, ShaderInfo>();
     defaultFragmentShader = ShaderLoader.CompileShaderFromFile(defaultFragmentShaderPath, ShaderType.FragmentShader);
     depthPeelerFragmentShader = ShaderLoader.CompileShaderFromFile(depthPeelerFragmentShaderPath, ShaderType.FragmentShader);
     DepthPeelingData = new DepthPeelingData();
 }