Skip to content

Instantly share code, notes, and snippets.

View zingi's full-sized avatar
🦀

Aaron Zingerle zingi

🦀
View GitHub Profile
uniform sampler2D bgl_RenderedTexture;
uniform sampler2D bgl_DepthTexture;
const float blurclamp = 3.0; // max blur amount
const float bias = 0.6; //aperture - bigger values for shallower depth of field
uniform float focus; // this value comes from ReadDepth script.
void main()
{
@zingi
zingi / controller.java
Created May 22, 2017 15:52
javafx: text-field event which gets triggered when the input-text has changed
resNumJFXTextField.textProperty().addListener(new ChangeListener<String>()
{
@Override
public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue)
{
generalEvent();
}
});