Exemple #1
0
 protected void AddShader()
 {
     if (_selection > -1)
     {
         _shaderManager.RefreshCameraManager();
         _shaderManager.AddMaterial("preview", _shaderAssetLoader.ShaderEffectList[_selection]);
         SetupActiveShaderStackList();
     }
 }
Exemple #2
0
 private void LoadMaterials()
 {
     ShaderManager.AddMaterial(
         "default",
         new[] { "Materials/DefaultVS.glsl" },
         new[] { "Materials/SingleColorFS.glsl" });
     ShaderManager.AddMaterial(
         "singleTexture",
         new[] { "Materials/DefaultVS.glsl" },
         new[] { "Materials/SingleTextureFS.glsl" });
     ShaderManager.AddMaterial(
         "diffuseLighting",
         new[] { "Materials/LightingVS.glsl" },
         new[] { "Materials/LightingFS.glsl" });
 }