mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-08 12:51:51 +09:00
Joise updated to 1.0.2
Former-commit-id: 8fdfe95a5a2be895b55785b1cfc57ae16e10100a Former-commit-id: 52248306c1b226bca423415d76b0f929e285103e
This commit is contained in:
@@ -85,7 +85,7 @@ public class ModuleBrightContrast extends SourcedModule {
|
||||
@Override
|
||||
public double get(double x, double y) {
|
||||
double val = source.get(x, y);
|
||||
// apply colourKey
|
||||
// apply brightness
|
||||
val += bright.get(x, y);
|
||||
// subtract threshold, scale by factor, add threshold
|
||||
double t = threshold.get(x, y);
|
||||
@@ -98,7 +98,7 @@ public class ModuleBrightContrast extends SourcedModule {
|
||||
@Override
|
||||
public double get(double x, double y, double z) {
|
||||
double val = source.get(x, y, z);
|
||||
// apply colourKey
|
||||
// apply brightness
|
||||
val += bright.get(x, y, z);
|
||||
// subtract threshold, scale by factor, add threshold
|
||||
double t = threshold.get(x, y, z);
|
||||
@@ -111,7 +111,7 @@ public class ModuleBrightContrast extends SourcedModule {
|
||||
@Override
|
||||
public double get(double x, double y, double z, double w) {
|
||||
double val = source.get(x, y, z, w);
|
||||
// apply colourKey
|
||||
// apply brightness
|
||||
val += bright.get(x, y, z, w);
|
||||
// subtract threshold, scale by factor, add threshold
|
||||
double t = threshold.get(x, y, z, w);
|
||||
@@ -124,7 +124,7 @@ public class ModuleBrightContrast extends SourcedModule {
|
||||
@Override
|
||||
public double get(double x, double y, double z, double w, double u, double v) {
|
||||
double val = source.get(x, y, z, w, u, v);
|
||||
// apply colourKey
|
||||
// apply brightness
|
||||
val += bright.get(x, y, z, w, u, v);
|
||||
// subtract threshold, scale by factor, add threshold
|
||||
double t = threshold.get(x, y, z, w, u, v);
|
||||
@@ -139,7 +139,7 @@ public class ModuleBrightContrast extends SourcedModule {
|
||||
|
||||
ModulePropertyMap props = new ModulePropertyMap(this);
|
||||
|
||||
writeScalar("colourKey", bright, props, map);
|
||||
writeScalar("brightness", bright, props, map);
|
||||
writeScalar("contrastFactor", factor, props, map);
|
||||
writeScalar("contrastThreshold", threshold, props, map);
|
||||
writeSource(props, map);
|
||||
@@ -152,7 +152,7 @@ public class ModuleBrightContrast extends SourcedModule {
|
||||
public Module buildFromPropertyMap(ModulePropertyMap props,
|
||||
ModuleInstanceMap map) {
|
||||
|
||||
readScalar("colourKey", "setBrightness", props, map);
|
||||
readScalar("brightness", "setBrightness", props, map);
|
||||
readScalar("contrastFactor", "setContrastFactor", props, map);
|
||||
readScalar("contrastThreshold", "setContrastThreshold", props, map);
|
||||
readSource(props, map);
|
||||
|
||||
Reference in New Issue
Block a user