public EffectPass(string rasterizer, string blend, string depthStencil, string shader, string vertexEntryPoint, string pixelEntryPoint, TechniqueTags tags, Effect effect) { if (rasterizer != "") { _hasRasterizerState = true; _rasterizerState = MaterialManager.RenderStates.GetRasterizerState(rasterizer); } if (blend != "") { _hasBlendState = true; _blendState = MaterialManager.RenderStates.GetBlendState(blend); } if (depthStencil != "") { _hasDepthStencilState = true; _depthStencilState = MaterialManager.RenderStates.GetDepthStencilState(depthStencil); } _tags = tags; _shader = new Shader(shader, tags, true, pixelEntryPoint, vertexEntryPoint); }
public EffectTechnique(string name, TechniqueTags tags, Effect effect) { Name = name; _tags = tags; _effect = effect; }