Package com.badlogic.gdx.graphics.g3d.utils

Examples of com.badlogic.gdx.graphics.g3d.utils.DefaultShaderProvider


  /** Construct a ModelBatch with the default implementation and the specified ubershader. See {@link DefaultShader} for
   * more information about using a custom ubershader. Requires OpenGL ES 2.0.
   * @param vertexShader The {@link FileHandle} of the vertex shader to use.
   * @param fragmentShader The {@link FileHandle} of the fragment shader to use. */
  public ModelBatch(final FileHandle vertexShader, final FileHandle fragmentShader) {
    this(new DefaultShaderProvider(vertexShader, fragmentShader));
  }
View Full Code Here


  /** Construct a ModelBatch with the default implementation and the specified ubershader. See {@link DefaultShader} for
   * more information about using a custom ubershader. Requires OpenGL ES 2.0.
   * @param vertexShader The vertex shader to use.
   * @param fragmentShader The fragment shader to use. */
  public ModelBatch(final String vertexShader, final String fragmentShader) {
    this(new DefaultShaderProvider(vertexShader, fragmentShader));
  }
View Full Code Here

 
  /** Construct a ModelBatch with the default implementation */
  public ModelBatch() {
    this(new RenderContext(new DefaultTextureBinder(DefaultTextureBinder.ROUNDROBIN, 1)),
        true,
        Gdx.graphics.isGL20Available() ? new DefaultShaderProvider() : new GLES10ShaderProvider(),
        new DefaultRenderableSorter());
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.g3d.utils.DefaultShaderProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.