示例#1
0
        public Shader(ShaderProgramManager shaderProgramManager, string shaderSource, string fileName, ShaderType shaderType) : base(shaderProgramManager)
        {
            ShaderProgramManager = shaderProgramManager;

            _fileName = fileName;

            ShaderType = shaderType;

            ShaderSource = shaderSource;
        }
示例#2
0
 public ShaderProgram(ShaderProgramManager shaderProgramManager, Shader vertexShader, Shader fragmentShader) : base(shaderProgramManager)
 {
     ShaderProgramManager = shaderProgramManager;
     VertexShader         = vertexShader;
     FragmentShader       = fragmentShader;
 }