Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SkyboxEffect.cs
Go to the documentation of this file.
1 // <auto-generated>
2 // Do not edit this file yourself!
3 //
4 // This code was generated by Paradox Shader Mixin Code Generator.
5 // To generate it yourself, please install SiliconStudio.Paradox.VisualStudio.Package .vsix
6 // and re-save the associated .pdxfx.
7 // </auto-generated>
8 
9 using System;
10 using SiliconStudio.Core;
11 using SiliconStudio.Paradox.Effects;
12 using SiliconStudio.Paradox.Graphics;
13 using SiliconStudio.Paradox.Shaders;
14 using SiliconStudio.Core.Mathematics;
16 
17 
18 #line 3 "D:\Code\Paradox\sources\shaders\SkyboxEffect.pdxfx"
19 using SiliconStudio.Paradox.Effects.Modules;
20 
21 #line 5
22 namespace SkyboxEffect
23 {
24 
25  #line 7
26  internal static partial class ShaderMixins
27  {
28  internal partial class SkyboxShader : IShaderMixinBuilder
29  {
30  public void Generate(ShaderMixinSourceTree mixin, ShaderMixinContext context)
31  {
32 
33  #line 9
34  context.Mixin(mixin, "ImageEffectShader");
35 
36  #line 10
37  context.Mixin(mixin, "AlbedoFlatShading");
38 
39  {
40 
41  #line 11
42  var __subMixin = new ShaderMixinSourceTree() { Parent = mixin };
43 
44  #line 11
45  context.Mixin(__subMixin, "CubemapSkybox", TexturingKeys.TextureCube0);
46  mixin.Mixin.AddComposition("albedoDiffuse", __subMixin.Mixin);
47  }
48  }
49 
50  [ModuleInitializer]
51  internal static void __Initialize__()
52 
53  {
54  ShaderMixinManager.Register("SkyboxShader", new SkyboxShader());
55  }
56  }
57  }
58 }
A context used when mixin ShaderSource.
All-in-One Buffer class linked SharpDX.Direct3D11.Buffer.
SiliconStudio.Paradox.Graphics.Buffer Buffer
Definition: SkyboxEffect.cs:15
Interface to be implemented for dynamic mixin generation.