return TextureManager.loadTexture(clazz.getResource(path), MinificationFilter.Trilinear, MagnificationFilter.Bilinear);
}
public static RenderState createXRayShader() {
GLSLShaderObjectsState xray = DisplaySystem.getDisplaySystem().getRenderer().createGLSLShaderObjectsState();
xray.load(clazz.getClassLoader().getResource("shader/xray/xray.vert"), clazz.getClassLoader().getResource("shader/xray/xray.frag"));
xray.setEnabled(true);
xray.setUniform("edgefalloff", 1f);
return xray;
}