protected void AddShader() { if (_selection > -1) { _shaderManager.RefreshCameraManager(); _shaderManager.AddMaterial("preview", _shaderAssetLoader.ShaderEffectList[_selection]); SetupActiveShaderStackList(); } }
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" }); }