Package com.badlogic.gdx.graphics.g3d.environment

Examples of com.badlogic.gdx.graphics.g3d.environment.DirectionalLight


    materialMask = renderable.material.getMask() | optionalAttributes;
    vertexMask = renderable.mesh.getVertexAttributes().getMask();

    this.directionalLights = new DirectionalLight[lighting && config.numDirectionalLights > 0 ? config.numDirectionalLights : 0];
    for (int i = 0; i < directionalLights.length; i++)
      directionalLights[i] = new DirectionalLight();
    this.pointLights = new PointLight[lighting && config.numPointLights > 0 ? config.numPointLights : 0];
    for (int i = 0; i < pointLights.length; i++)
      pointLights[i] = new PointLight();

    if (!ignoreUnimplemented && (implementedFlags & materialMask) != materialMask)
View Full Code Here


    public void create () {
      if (ui != null) return;
      int w = Gdx.graphics.getWidth(), h = Gdx.graphics.getHeight();
      modelBatch = new ModelBatch();
      environment = new Environment();
      environment.add(new DirectionalLight().set(Color.WHITE, 0,0,-1));
     
      worldCamera = new PerspectiveCamera(67, w, h);
      worldCamera.position.set(10, 10, 10);
      worldCamera.lookAt(0,0,0);
      worldCamera.near = 0.1f;
View Full Code Here

    materialMask = renderable.material.getMask() | optionalAttributes;
    vertexMask = renderable.mesh.getVertexAttributes().getMask();

    this.directionalLights = new DirectionalLight[lighting && config.numDirectionalLights > 0 ? config.numDirectionalLights : 0];
    for (int i = 0; i < directionalLights.length; i++)
      directionalLights[i] = new DirectionalLight();
    this.pointLights = new PointLight[lighting && config.numPointLights > 0 ? config.numPointLights : 0];
    for (int i = 0; i < pointLights.length; i++)
      pointLights[i] = new PointLight();

    if (!config.ignoreUnimplemented && (implementedFlags & materialMask) != materialMask)
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.graphics.g3d.environment.DirectionalLight

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.