Example usage for com.badlogic.gdx Gdx files

List of usage examples for com.badlogic.gdx Gdx files

Introduction

In this page you can find the example usage for com.badlogic.gdx Gdx files.

Prototype

Files files

To view the source code for com.badlogic.gdx Gdx files.

Click Source Link

Usage

From source file:com.badlogic.gdx.tests.g3d.shadows.system.classical.MainShader.java

License:Apache License

public static String getDefaultVertexShader() {
    if (defaultVertexShader == null)
        defaultVertexShader = Gdx.files
                .classpath("com/badlogic/gdx/tests/g3d/shadows/system/classical/main.vertex.glsl").readString();
    return defaultVertexShader;
}

From source file:com.badlogic.gdx.tests.g3d.shadows.system.classical.MainShader.java

License:Apache License

public static String getDefaultFragmentShader() {
    if (defaultFragmentShader == null)
        defaultFragmentShader = Gdx.files
                .classpath("com/badlogic/gdx/tests/g3d/shadows/system/classical/main.fragment.glsl")
                .readString();// w  ww . java  2 s .  c om
    return defaultFragmentShader;
}

From source file:com.badlogic.gdx.tests.g3d.shadows.system.classical.Pass1Shader.java

License:Apache License

public static String getDefaultVertexShader() {
    if (defaultVertexShader == null)
        defaultVertexShader = Gdx.files
                .classpath("com/badlogic/gdx/tests/g3d/shadows/system/classical/pass1.vertex.glsl")
                .readString();// w w  w . j  av  a  2 s. co  m
    return defaultVertexShader;
}

From source file:com.badlogic.gdx.tests.g3d.shadows.system.classical.Pass1Shader.java

License:Apache License

public static String getDefaultFragmentShader() {
    if (defaultFragmentShader == null)
        defaultFragmentShader = Gdx.files
                .classpath("com/badlogic/gdx/tests/g3d/shadows/system/classical/pass1.fragment.glsl")
                .readString();/*from  www  .j a  va2 s  . c  o m*/
    return defaultFragmentShader;
}

From source file:com.badlogic.gdx.tests.g3d.shadows.system.classical.Pass2Shader.java

License:Apache License

public static String getDefaultVertexShader() {
    if (defaultVertexShader == null)
        defaultVertexShader = Gdx.files
                .classpath("com/badlogic/gdx/tests/g3d/shadows/system/classical/pass2.vertex.glsl")
                .readString();/*from   www.  j  a va 2 s  .  c o  m*/
    return defaultVertexShader;
}

From source file:com.badlogic.gdx.tests.g3d.shadows.system.classical.Pass2Shader.java

License:Apache License

public static String getDefaultFragmentShader() {
    if (defaultFragmentShader == null)
        defaultFragmentShader = Gdx.files
                .classpath("com/badlogic/gdx/tests/g3d/shadows/system/classical/pass2.fragment.glsl")
                .readString();/*from   ww  w.jav  a2 s  .  c o  m*/
    return defaultFragmentShader;
}

From source file:com.badlogic.gdx.tests.g3d.shadows.system.realistic.MainShader.java

License:Apache License

public static String getDefaultVertexShader() {
    if (defaultVertexShader == null)
        defaultVertexShader = Gdx.files
                .classpath("com/badlogic/gdx/tests/g3d/shadows/system/realistic/main.vertex.glsl").readString();
    return defaultVertexShader;
}

From source file:com.badlogic.gdx.tests.g3d.shadows.system.realistic.MainShader.java

License:Apache License

public static String getDefaultFragmentShader() {
    if (defaultFragmentShader == null)
        defaultFragmentShader = Gdx.files
                .classpath("com/badlogic/gdx/tests/g3d/shadows/system/realistic/main.fragment.glsl")
                .readString();//  w  w w.ja va2 s.c o  m
    return defaultFragmentShader;
}

From source file:com.badlogic.gdx.tests.g3d.shadows.system.realistic.Pass1Shader.java

License:Apache License

public static String getDefaultVertexShader() {
    if (defaultVertexShader == null)
        defaultVertexShader = Gdx.files
                .classpath("com/badlogic/gdx/tests/g3d/shadows/system/realistic/pass1.vertex.glsl")
                .readString();//  w  w  w. j  a v  a  2  s . c  o  m
    return defaultVertexShader;
}

From source file:com.badlogic.gdx.tests.g3d.shadows.system.realistic.Pass1Shader.java

License:Apache License

public static String getDefaultFragmentShader() {
    if (defaultFragmentShader == null)
        defaultFragmentShader = Gdx.files
                .classpath("com/badlogic/gdx/tests/g3d/shadows/system/realistic/pass1.fragment.glsl")
                .readString();//from  ww w.  j a  va 2s.  com
    return defaultFragmentShader;
}