use of com.gempukku.libgdx.graph.ui.part.FloatBoxPart in project gdx-graph by MarcinSc.
the class PropertyFloatBoxProducer method createPropertyBox.
@Override
public PropertyBox createPropertyBox(Skin skin, String name, PropertyLocation location, JsonValue jsonObject, PropertyLocation[] propertyLocations) {
PropertyBoxImpl result = new PropertyBoxImpl(name, ShaderFieldType.Float, location, propertyLocations);
result.addPropertyBoxPart(new FloatBoxPart("Value", "x", 0, null));
result.initialize(jsonObject);
return result;
}
use of com.gempukku.libgdx.graph.ui.part.FloatBoxPart in project gdx-graph by MarcinSc.
the class TimeShaderBoxProducer method createPipelineGraphBox.
@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
GraphBoxImpl result = createGraphBox(id);
FloatBoxPart multiplierPart = new FloatBoxPart("Multiplier", "multiplier", 1f, null);
multiplierPart.initialize(data);
result.addGraphBoxPart(multiplierPart);
addConfigurationInputsAndOutputs(result);
return result;
}
use of com.gempukku.libgdx.graph.ui.part.FloatBoxPart in project gdx-graph by MarcinSc.
the class DepthOfFieldBoxProducer method createPipelineGraphBox.
@Override
public GraphBox createPipelineGraphBox(Skin skin, String id, JsonValue data) {
GraphBoxImpl result = createGraphBox(id);
FloatBoxPart maxBlurPart = new FloatBoxPart("Max blur", "maxBlur", 10, new Validators.GreaterThanValidator(0, false));
maxBlurPart.setValue(10f);
maxBlurPart.initialize(data);
result.addGraphBoxPart(maxBlurPart);
CheckboxBoxPart blurBackground = new CheckboxBoxPart("Blur background", "blurBackground");
blurBackground.setValue(false);
blurBackground.initialize(data);
result.addGraphBoxPart(blurBackground);
addConfigurationInputsAndOutputs(result);
return result;
}
Aggregations