Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
PickingShaderPlugin.cs
Go to the documentation of this file.
1 using SiliconStudio.Paradox.Shaders;
2 
3 namespace SiliconStudio.Paradox.Effects
4 {
5  public class PickingShaderPlugin : ShaderPlugin<PickingPlugin>
6  {
7  public RenderPassPlugin MainPlugin { get; set; }
8 
9  public override void SetupShaders(EffectMesh effectMesh)
10  {
11  // Duplicate the main shader
12  throw new System.NotImplementedException();
13  EffectShaderPass mainShaderPass;
14  //var mainShaderPass = FindShaderPassFromPlugin(MainPlugin);
15  DefaultShaderPass.Shader = (ShaderMixinSource)mainShaderPass.Shader.Clone();
16  DefaultShaderPass.Macros.AddRange(mainShaderPass.Macros);
17  DefaultShaderPass.SubMeshDataKey = mainShaderPass.SubMeshDataKey;
18 
19  BasicShaderPlugin.ApplyMixinClass(DefaultShaderPass.Shader, new ShaderClassSource("PickingRasterizer"), true);
20  }
21  }
22 }
override void SetupShaders(EffectMesh effectMesh)
A mixin performing a combination of ShaderClassSource and other mixins.
Plugin used for the main rendering view.
Definition: MainPlugin.cs:15