Search in sources :

Example 1 with PbrTextureAttribute

use of io.github.voidzombie.nhglib.graphics.shaders.attributes.PbrTextureAttribute in project nhglib by VoidZombie.

the class ShaderUtils method hasPbrNormal.

public static boolean hasPbrNormal(Renderable renderable) {
    boolean res = false;
    PbrTextureAttribute attribute = (PbrTextureAttribute) renderable.material.get(PbrTextureAttribute.Normal);
    if (attribute != null && attribute.textureDescription.texture != null) {
        res = true;
    }
    return res;
}
Also used : PbrTextureAttribute(io.github.voidzombie.nhglib.graphics.shaders.attributes.PbrTextureAttribute)

Example 2 with PbrTextureAttribute

use of io.github.voidzombie.nhglib.graphics.shaders.attributes.PbrTextureAttribute in project nhglib by VoidZombie.

the class ShaderUtils method hasMetalness.

public static boolean hasMetalness(Renderable renderable) {
    boolean res = false;
    PbrTextureAttribute attribute = (PbrTextureAttribute) renderable.material.get(PbrTextureAttribute.Metalness);
    if (attribute != null && attribute.textureDescription.texture != null) {
        res = true;
    }
    return res;
}
Also used : PbrTextureAttribute(io.github.voidzombie.nhglib.graphics.shaders.attributes.PbrTextureAttribute)

Example 3 with PbrTextureAttribute

use of io.github.voidzombie.nhglib.graphics.shaders.attributes.PbrTextureAttribute in project nhglib by VoidZombie.

the class ShaderUtils method hasAlbedo.

public static boolean hasAlbedo(Renderable renderable) {
    boolean res = false;
    PbrTextureAttribute attribute = (PbrTextureAttribute) renderable.material.get(PbrTextureAttribute.Albedo);
    if (attribute != null && attribute.textureDescription.texture != null) {
        res = true;
    }
    return res;
}
Also used : PbrTextureAttribute(io.github.voidzombie.nhglib.graphics.shaders.attributes.PbrTextureAttribute)

Example 4 with PbrTextureAttribute

use of io.github.voidzombie.nhglib.graphics.shaders.attributes.PbrTextureAttribute in project nhglib by VoidZombie.

the class ShaderUtils method hasRoughness.

public static boolean hasRoughness(Renderable renderable) {
    boolean res = false;
    PbrTextureAttribute attribute = (PbrTextureAttribute) renderable.material.get(PbrTextureAttribute.Roughness);
    if (attribute != null && attribute.textureDescription.texture != null) {
        res = true;
    }
    return res;
}
Also used : PbrTextureAttribute(io.github.voidzombie.nhglib.graphics.shaders.attributes.PbrTextureAttribute)

Example 5 with PbrTextureAttribute

use of io.github.voidzombie.nhglib.graphics.shaders.attributes.PbrTextureAttribute in project nhglib by VoidZombie.

the class ShaderUtils method hasAmbientOcclusion.

public static boolean hasAmbientOcclusion(Renderable renderable) {
    boolean res = false;
    PbrTextureAttribute attribute = (PbrTextureAttribute) renderable.material.get(PbrTextureAttribute.AmbientOcclusion);
    if (attribute != null && attribute.textureDescription.texture != null) {
        res = true;
    }
    return res;
}
Also used : PbrTextureAttribute(io.github.voidzombie.nhglib.graphics.shaders.attributes.PbrTextureAttribute)

Aggregations

PbrTextureAttribute (io.github.voidzombie.nhglib.graphics.shaders.attributes.PbrTextureAttribute)5