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;
}
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;
}
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;
}
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;
}
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;
}
Aggregations