Example usage for com.badlogic.gdx.graphics.g3d.model.data ModelTexture USAGE_REFLECTION

List of usage examples for com.badlogic.gdx.graphics.g3d.model.data ModelTexture USAGE_REFLECTION

Introduction

In this page you can find the example usage for com.badlogic.gdx.graphics.g3d.model.data ModelTexture USAGE_REFLECTION.

Prototype

int USAGE_REFLECTION

To view the source code for com.badlogic.gdx.graphics.g3d.model.data ModelTexture USAGE_REFLECTION.

Click Source Link

Usage

From source file:com.mbrlabs.mundus.commons.g3d.MG3dModelLoader.java

License:Apache License

private int parseTextureUsage(final String value) {
    if (value.equalsIgnoreCase("AMBIENT"))
        return ModelTexture.USAGE_AMBIENT;
    else if (value.equalsIgnoreCase("BUMP"))
        return ModelTexture.USAGE_BUMP;
    else if (value.equalsIgnoreCase("DIFFUSE"))
        return ModelTexture.USAGE_DIFFUSE;
    else if (value.equalsIgnoreCase("EMISSIVE"))
        return ModelTexture.USAGE_EMISSIVE;
    else if (value.equalsIgnoreCase("NONE"))
        return ModelTexture.USAGE_NONE;
    else if (value.equalsIgnoreCase("NORMAL"))
        return ModelTexture.USAGE_NORMAL;
    else if (value.equalsIgnoreCase("REFLECTION"))
        return ModelTexture.USAGE_REFLECTION;
    else if (value.equalsIgnoreCase("SHININESS"))
        return ModelTexture.USAGE_SHININESS;
    else if (value.equalsIgnoreCase("SPECULAR"))
        return ModelTexture.USAGE_SPECULAR;
    else if (value.equalsIgnoreCase("TRANSPARENCY"))
        return ModelTexture.USAGE_TRANSPARENCY;
    return ModelTexture.USAGE_UNKNOWN;
}