use of com.talosvfx.talos.runtime.utils.ShaderDescriptor in project talos by rockbite.
the class TalosAssetProvider method registerUnknownHandlerParsers.
private void registerUnknownHandlerParsers() {
extensionToAssetParser.put("png", handle -> {
handle = TalosMain.Instance().ProjectController().findFile(handle);
if (handle == null)
return;
addToAtlas(handle.nameWithoutExtension(), new TextureRegion(new Texture(handle)));
});
extensionToAssetParser.put("jpg", handle -> {
handle = TalosMain.Instance().ProjectController().findFile(handle);
if (handle == null)
return;
addToAtlas(handle.nameWithoutExtension(), new TextureRegion(new Texture(handle)));
});
extensionToAssetParser.put("fga", handle -> {
handle = TalosMain.Instance().ProjectController().findFile(handle);
if (handle == null)
return;
addVectorField(handle.nameWithoutExtension(), new VectorField(handle));
});
extensionToAssetParser.put("shdr", handle -> {
handle = TalosMain.Instance().ProjectController().findFile(handle);
if (handle == null)
return;
addShaderDescriptor(handle.nameWithoutExtension(), new ShaderDescriptor(handle));
});
}
Aggregations