use of blusunrize.immersiveengineering.api.shader.ShaderCase.ShaderLayer in project ImmersiveEngineering by BluSunrize.
the class ShaderRegistry method registerShader_Balloon.
/**
* Method to register a default implementation of Balloon Shaders
* @param name name of the shader
* @param overlayType uses IE's existing overlays. To use custom ones, you'll need your own method.
* @param rarity Rarity of the shader item
* @param colour0 base colour
* @param colour1 design colour
* @param additionalTexture additional overlay texture. Null if not needed.
* @param colourAddtional colour for the additional texture, if present
* @return the registered ShaderCase
*/
public static ShaderCaseBalloon registerShader_Balloon(String name, String overlayType, EnumRarity rarity, int colour0, int colour1, String additionalTexture, int colourAddtional) {
ArrayList<ShaderLayer> list = new ArrayList();
list.add(new ShaderLayer(new ResourceLocation("immersiveengineering:blocks/shaders/balloon_0"), colour0));
list.add(new ShaderLayer(new ResourceLocation("immersiveengineering:blocks/shaders/balloon_1_" + overlayType), colour1));
if (additionalTexture != null) {
ResourceLocation rl = new ResourceLocation("immersiveengineering:blocks/shaders/balloon_" + additionalTexture);
list.add(new ShaderLayer(rl, colourAddtional).setTextureBounds(defaultLayerBounds.get(rl)));
}
list.add(new ShaderLayer(new ResourceLocation("immersiveengineering:blocks/shaders/balloon_uncoloured"), 0xffffffff));
ShaderCaseBalloon shader = new ShaderCaseBalloon(list);
return registerShaderCase(name, shader, rarity);
}
Aggregations