Search in sources :

Example 11 with Directional3DLight

use of com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight in project gdx-graph by MarcinSc.

the class Episode9Scene method createLights.

private Lighting3DEnvironment createLights() {
    float ambientBrightness = 0.3f;
    float directionalBrightness = 0.8f;
    Lighting3DEnvironment lights = new Lighting3DEnvironment();
    lights.setAmbientColor(new Color(ambientBrightness, ambientBrightness, ambientBrightness, 1f));
    DirectionalLight directionalLight = new DirectionalLight();
    directionalLight.setColor(directionalBrightness, directionalBrightness, directionalBrightness, 1f);
    directionalLight.setDirection(-0.3f, -0.4f, -1);
    lights.addDirectionalLight(new Directional3DLight(directionalLight));
    return lights;
}
Also used : Directional3DLight(com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight) Lighting3DEnvironment(com.gempukku.libgdx.graph.plugin.lighting3d.Lighting3DEnvironment) Color(com.badlogic.gdx.graphics.Color) DirectionalLight(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight)

Example 12 with Directional3DLight

use of com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight in project gdx-graph by MarcinSc.

the class Episode16Scene method createLights.

private Lighting3DEnvironment createLights() {
    float ambientBrightness = 0.8f;
    float directionalBrightness = 0.8f;
    Lighting3DEnvironment lights = new Lighting3DEnvironment();
    lights.setAmbientColor(new Color(ambientBrightness, ambientBrightness, ambientBrightness, 1f));
    DirectionalLight directionalLight = new DirectionalLight();
    directionalLight.setColor(directionalBrightness, directionalBrightness, directionalBrightness, 1f);
    directionalLight.setDirection(-1f, -0.3f, 0);
    lights.addDirectionalLight(new Directional3DLight(directionalLight));
    return lights;
}
Also used : Directional3DLight(com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight) Lighting3DEnvironment(com.gempukku.libgdx.graph.plugin.lighting3d.Lighting3DEnvironment) Color(com.badlogic.gdx.graphics.Color) DirectionalLight(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight)

Example 13 with Directional3DLight

use of com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight in project gdx-graph by MarcinSc.

the class Episode7Scene method createLights.

private Lighting3DEnvironment createLights() {
    float ambientBrightness = 0.3f;
    float directionalBrightness = 0.8f;
    Lighting3DEnvironment lights = new Lighting3DEnvironment();
    lights.setAmbientColor(new Color(ambientBrightness, ambientBrightness, ambientBrightness, 1f));
    DirectionalLight directionalLight = new DirectionalLight();
    directionalLight.setColor(directionalBrightness, directionalBrightness, directionalBrightness, 1f);
    directionalLight.setDirection(-1f, -0.3f, 0);
    lights.addDirectionalLight(new Directional3DLight(directionalLight));
    return lights;
}
Also used : Directional3DLight(com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight) Lighting3DEnvironment(com.gempukku.libgdx.graph.plugin.lighting3d.Lighting3DEnvironment) Color(com.badlogic.gdx.graphics.Color) DirectionalLight(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight)

Example 14 with Directional3DLight

use of com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight in project gdx-graph by MarcinSc.

the class Episode15Scene method createLights.

private Lighting3DEnvironment createLights() {
    float ambientBrightness = 0.8f;
    float directionalBrightness = 0.8f;
    Lighting3DEnvironment lights = new Lighting3DEnvironment();
    lights.setAmbientColor(new Color(ambientBrightness, ambientBrightness, ambientBrightness, 1f));
    DirectionalLight directionalLight = new DirectionalLight();
    directionalLight.setColor(directionalBrightness, directionalBrightness, directionalBrightness, 1f);
    directionalLight.setDirection(-1f, -0.3f, 0);
    lights.addDirectionalLight(new Directional3DLight(directionalLight));
    return lights;
}
Also used : Directional3DLight(com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight) Lighting3DEnvironment(com.gempukku.libgdx.graph.plugin.lighting3d.Lighting3DEnvironment) Color(com.badlogic.gdx.graphics.Color) DirectionalLight(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight)

Example 15 with Directional3DLight

use of com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight in project gdx-graph by MarcinSc.

the class Episode12Scene method createLights.

private Lighting3DEnvironment createLights() {
    float ambientBrightness = 0.3f;
    float directionalBrightness = 0.8f;
    Lighting3DEnvironment lights = new Lighting3DEnvironment();
    lights.setAmbientColor(new Color(ambientBrightness, ambientBrightness, ambientBrightness, 1f));
    DirectionalLight directionalLight = new DirectionalLight();
    directionalLight.setColor(directionalBrightness, directionalBrightness, directionalBrightness, 1f);
    directionalLight.setDirection(-0.3f, -0.4f, -1);
    lights.addDirectionalLight(new Directional3DLight(directionalLight));
    return lights;
}
Also used : Directional3DLight(com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight) Lighting3DEnvironment(com.gempukku.libgdx.graph.plugin.lighting3d.Lighting3DEnvironment) Color(com.badlogic.gdx.graphics.Color) DirectionalLight(com.badlogic.gdx.graphics.g3d.environment.DirectionalLight)

Aggregations

Directional3DLight (com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight)15 Lighting3DEnvironment (com.gempukku.libgdx.graph.plugin.lighting3d.Lighting3DEnvironment)14 Color (com.badlogic.gdx.graphics.Color)12 DirectionalLight (com.badlogic.gdx.graphics.g3d.environment.DirectionalLight)11 Array (com.badlogic.gdx.utils.Array)2 ObjectMap (com.badlogic.gdx.utils.ObjectMap)2 PipelineRenderingContext (com.gempukku.libgdx.graph.pipeline.producer.PipelineRenderingContext)2 Lighting3DPrivateData (com.gempukku.libgdx.graph.plugin.lighting3d.Lighting3DPrivateData)2 Camera (com.badlogic.gdx.graphics.Camera)1 PerspectiveCamera (com.badlogic.gdx.graphics.PerspectiveCamera)1 Material (com.badlogic.gdx.graphics.g3d.Material)1 Model (com.badlogic.gdx.graphics.g3d.Model)1 ModelInstance (com.badlogic.gdx.graphics.g3d.ModelInstance)1 ModelBuilder (com.badlogic.gdx.graphics.g3d.utils.ModelBuilder)1 Vector3 (com.badlogic.gdx.math.Vector3)1 JsonValue (com.badlogic.gdx.utils.JsonValue)1 RenderOrder (com.gempukku.libgdx.graph.pipeline.RenderOrder)1 RenderPipeline (com.gempukku.libgdx.graph.pipeline.RenderPipeline)1 RenderPipelineBuffer (com.gempukku.libgdx.graph.pipeline.RenderPipelineBuffer)1 PipelineDataProvider (com.gempukku.libgdx.graph.pipeline.producer.node.PipelineDataProvider)1