Exemplo n.º 1
0
        public VertexShader(string path, ShaderProgram program)
        {
            Type = ShaderType.VertexShader;
            Shader = GL.CreateShader(Type);
            LoadAndCompileShader(path);

            AttachToProgram(program);
        }
 static GeneralGraphics()
 {
     SimulatedLighting = new ShaderProgram("data/effects/SimulatedLighting.vert",
         "data/effects/SimulatedLighting.frag");
     ExclamationTexture = new Texture("data/img/icons/exclamation.png");
     ExclamationMask = new Texture("data/img/icons/mask.png");
     BackgroundTexture = new Texture("data/img/bck.bmp");
     InfoBoxFrame = new Texture("data/img/icons/frame.png");
 }
Exemplo n.º 3
0
 public void AttachToProgram(ShaderProgram program)
 {
     program.AttachShader(this);
 }
 public ButtonWobbleEffect(Button target)
 {
     Target = target;
     Program = new ShaderProgram("data/effects/WobbleVertex.vert", "data/effects/WobbleFragment.frag");
 }