use of org.terasology.engine.rendering.assets.shader.Shader in project Terasology by MovingBlocks.
the class ShaderManagerLwjgl method recompileAllShaders.
@Override
public void recompileAllShaders() {
AssetManager assetManager = CoreRegistry.get(AssetManager.class);
assetManager.getLoadedAssets(Shader.class).forEach(Shader::recompile);
assetManager.getLoadedAssets(Material.class).forEach(Material::recompile);
activeMaterial = null;
}
Aggregations