Examples of Texture


Examples of org.terasology.rendering.assets.texture.Texture

            GL13.glActiveTexture(GL13.GL_TEXTURE1);
            scene.bindNormalsTexture();
            program.setInt("texNormals", texId++, true);
        }

        Texture ssaoNoiseTexture = updateNoiseTexture();

        GL13.glActiveTexture(GL13.GL_TEXTURE2);
        glBindTexture(GL11.GL_TEXTURE_2D, ssaoNoiseTexture.getId());
        program.setInt("texNoise", texId++, true);

        program.setFloat4("ssaoSettings", ssaoStrength, ssaoRad, 0.0f, 0.0f, true);

        if (CoreRegistry.get(WorldRenderer.class) != null) {
View Full Code Here

Examples of org.xith3d.scenegraph.Texture

        this.cameraMover = new CameraMover(app, this, 1f);
       
        /*
         * Clouds and sun
         */
        Texture nuages = ResBag.getTexture(ResourceNames.NUAGES);
        this.addChild(new RectBillboard(nuages, 8f * 15f,
                6f * 15f, ZeroPointLocation.CENTER_CENTER, -30f));
        Texture soleil = ResBag.getTexture(ResourceNames.SOLEIL);
        this.addChild(new Transform(new RectBillboard(soleil,
                8f * 2f, 6f * 2f, ZeroPointLocation.BOTTOM_CENTER, -25f))
                .setTranslationZ(13f));
       
        /*
 
View Full Code Here

Examples of ru.snake.spritepacker.core.Texture

    return true;
  }

  private Sprite createSprite(int width, int height, boolean crop,
      TextureLoader textureLoader, BufferedImage image, String namer) {
    Texture texture;
    Point offset;

    if (crop) {
      offset = new Point();
View Full Code Here

Examples of se.llbit.chunky.resources.Texture

          case Block.TALLGRASS_ID:
          case Block.LEAVES_ID:
          case Block.LEAVES2_ID:
          case Block.VINES_ID:
          {
            Texture tex = Block.get(block).getIcon();
            for (int i = 0; i < 16; ++i) {
              for (int j = 0; j < 16; ++j) {
                float[] rgb = tex.getColor(j, i);
                if (rgb[3] != 0) {
                  rbuff.setRGB(xp0 + j, yp0 + i, getBiomeColor(rgb, block, biomes[x*Chunk.Z_MAX+z]));
                } else {
                  rbuff.setRGB(xp0 + j, yp0 + i, 0xFFFFFFFF);
                }
View Full Code Here

Examples of sprites.Texture

  }
 
  @Override
  public void renderSprite(Sprite sprite, int x, int y) {
   
    Texture t = sprite.getTexture();
   
    int xpos = x;
    int ypos = y;
    int width = sprite.getWidth();
    int height = sprite.getHeight();
    float xit = (float) sprite.getTextureX();
    float yit = (float) sprite.getTextureY();
    float wit = (float) sprite.getWidthInTexture();
    float hit = (float) sprite.getHeightInTexture();
   
    this.setSpriteUBO(xpos, ypos, width, height, xit, yit, wit, hit, 0);
   
    this.gl.glBindVertexArray(this.spriteVAO);
    this.gl.glBindTexture(GL_TEXTURE_2D, t.getID());
    this.gl.glUseProgram(this.defaultProgram.getID());
   
    this.gl.glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_BYTE, 0);
   
    this.gl.glUseProgram(0);
View Full Code Here

Examples of stephencarmody.k8.core.Texture

    public static void main(String[] args) {
      try {
        Log.setLogFile("C:/physics.log");
        Application.setTitle("Physics");
        Application.initialise(400, 300);
        wood = new Texture("/stephencarmody/physics/texture/blonde-wood.jpg");
        new User();
        new State(100f, 0f);
        Application.run();
      } catch ( Throwable t ) {
        String msg = t.toString() + "\n\t";
View Full Code Here

Examples of stephencarmody.k8.core.Texture

    public static void main(String[] args) {
      try {
        Log.setLogFile("C:/random_rotating_triangles.log");
        Application.setTitle("k8 Test");
        Application.initialise();
        wood = new Texture("/stephencarmody/random_rotating_triangles/texture/blonde-wood.jpg");
        new User();
        new HUD();
        feeder = new TriangleFeeder();
        Application.run();
      } catch ( Throwable t ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.