use of com.talosvfx.talos.runtime.assets.AssetProvider in project talos by rockbite.
the class ShadedSpriteModule method setModuleGraph.
@Override
public void setModuleGraph(ParticleEmitterDescriptor graph) {
super.setModuleGraph(graph);
final AssetProvider assetProvider = graph.getEffectDescriptor().getAssetProvider();
if (shdrFileName != null && !shdrFileName.isEmpty()) {
setShaderData(assetProvider.findAsset(shdrFileName, ShaderDescriptor.class), shdrFileName);
}
updateShader(shaderDescriptor);
}
use of com.talosvfx.talos.runtime.assets.AssetProvider in project talos by rockbite.
the class TextureModule method setModuleGraph.
@Override
public void setModuleGraph(ParticleEmitterDescriptor graph) {
super.setModuleGraph(graph);
final AssetProvider assetProvider = graph.getEffectDescriptor().getAssetProvider();
setRegion(regionName, assetProvider.findAsset(regionName, Sprite.class));
}
use of com.talosvfx.talos.runtime.assets.AssetProvider in project talos by rockbite.
the class PolylineModule method setModuleGraph.
@Override
public void setModuleGraph(ParticleEmitterDescriptor graph) {
super.setModuleGraph(graph);
final AssetProvider assetProvider = graph.getEffectDescriptor().getAssetProvider();
setRegion(regionName, assetProvider.findAsset(regionName, TextureRegion.class));
}
use of com.talosvfx.talos.runtime.assets.AssetProvider in project talos by rockbite.
the class FlipbookModule method setModuleGraph.
@Override
public void setModuleGraph(ParticleEmitterDescriptor graph) {
super.setModuleGraph(graph);
final AssetProvider assetProvider = graph.getEffectDescriptor().getAssetProvider();
setRegion(regionName, assetProvider.findAsset(regionName, TextureRegion.class));
}
use of com.talosvfx.talos.runtime.assets.AssetProvider in project talos by rockbite.
the class VectorFieldModule method setModuleGraph.
@Override
public void setModuleGraph(ParticleEmitterDescriptor graph) {
super.setModuleGraph(graph);
final AssetProvider assetProvider = graph.getEffectDescriptor().getAssetProvider();
if (fgaFileName != null && !fgaFileName.isEmpty()) {
setVectorField(assetProvider.findAsset(fgaFileName, VectorField.class), fgaFileName);
}
}
Aggregations