Search in sources :

Example 1 with Lighting3DEnvironment

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

the class Episode17Scene 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 2 with Lighting3DEnvironment

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

the class Episode8Scene 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 3 with Lighting3DEnvironment

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

the class Episode11Scene 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 4 with Lighting3DEnvironment

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

the class Episode13Scene 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 5 with Lighting3DEnvironment

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

the class Episode14Scene 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

Lighting3DEnvironment (com.gempukku.libgdx.graph.plugin.lighting3d.Lighting3DEnvironment)18 Directional3DLight (com.gempukku.libgdx.graph.plugin.lighting3d.Directional3DLight)14 Color (com.badlogic.gdx.graphics.Color)12 DirectionalLight (com.badlogic.gdx.graphics.g3d.environment.DirectionalLight)11 Array (com.badlogic.gdx.utils.Array)5 ObjectMap (com.badlogic.gdx.utils.ObjectMap)5 LightColor (com.gempukku.libgdx.graph.plugin.lighting3d.LightColor)5 Lighting3DPrivateData (com.gempukku.libgdx.graph.plugin.lighting3d.Lighting3DPrivateData)5 DefaultFieldOutput (com.gempukku.libgdx.graph.shader.node.DefaultFieldOutput)5 Lights3DProvider (com.gempukku.libgdx.graph.plugin.lighting3d.provider.Lights3DProvider)4 RenderPipelineBuffer (com.gempukku.libgdx.graph.pipeline.RenderPipelineBuffer)2 Camera (com.badlogic.gdx.graphics.Camera)1 OrthographicCamera (com.badlogic.gdx.graphics.OrthographicCamera)1 PerspectiveCamera (com.badlogic.gdx.graphics.PerspectiveCamera)1 Texture (com.badlogic.gdx.graphics.Texture)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 TextureDescriptor (com.badlogic.gdx.graphics.g3d.utils.TextureDescriptor)1