use of com.talosvfx.talos.editor.addons.shader.nodes.AbstractShaderNode in project talos by rockbite.
the class UIKit method create.
@Override
public void create() {
super.create();
TextureAtlas atlas = new TextureAtlas(Gdx.files.internal("skin/uiskin.atlas"));
skin = new Skin(Gdx.files.internal("skin/uiskin.json"));
skin.addRegions(atlas);
table = new Table();
AbstractShaderNode shaderNode = new AbstractShaderNode() {
@Override
public void prepareDeclarations(ShaderBuilder shaderBuilder) {
}
@Override
public String writeOutputCode(String slotId) {
return null;
}
};
shaderNode.init(skin, null);
XmlReader reader = new XmlReader();
XmlReader.Element root = reader.parse(Gdx.files.internal("addons/shader/nodes.xml"));
shaderNode.constructNode(root.getChild(0).getChild(0));
table.add(shaderNode);
stage = new Stage();
Gdx.input.setInputProcessor(stage);
table.setFillParent(true);
stage.addActor(table);
}
Aggregations