mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-25 14:44:28 +00:00
Angelica 2.0
* GLStateManagerService & RenderSystemService * Wire up Celeritas * Iris working * Dynamic lights working * Goodbye Sodium 0.2 * Add Multi-Threading for check meshing again
This commit is contained in:
1 parent
e5e8250d44
commit
be90a01725
354 files changed
+5257
-15599
No files matched your search
@@ -1,18 +1,9 @@
|
||||
package net.coderbot.iris.gl.state;
|
||||
|
||||
/**
|
||||
* Holds some standard update notifiers for various elements of GL state. Currently, this class has a few listeners for
|
||||
* fog-related values.
|
||||
* Holds update notifiers for PBR texture changes.
|
||||
*/
|
||||
public class StateUpdateNotifiers {
|
||||
public static ValueUpdateNotifier fogToggleNotifier;
|
||||
public static ValueUpdateNotifier fogModeNotifier;
|
||||
public static ValueUpdateNotifier fogStartNotifier;
|
||||
public static ValueUpdateNotifier fogEndNotifier;
|
||||
public static ValueUpdateNotifier fogDensityNotifier;
|
||||
public static ValueUpdateNotifier blendFuncNotifier;
|
||||
public static ValueUpdateNotifier bindTextureNotifier;
|
||||
public static ValueUpdateNotifier normalTextureChangeNotifier;
|
||||
public static ValueUpdateNotifier specularTextureChangeNotifier;
|
||||
public static ValueUpdateNotifier phaseChangeNotifier;
|
||||
}
|
||||
@@ -1,12 +1,14 @@
|
||||
package net.coderbot.iris.gl.state;
|
||||
|
||||
/**
|
||||
* A
|
||||
* A notifier that can trigger uniform updates when values change.
|
||||
*/
|
||||
public interface ValueUpdateNotifier {
|
||||
/** No-op notifier for uniforms that are polled per-frame rather than push-notified */
|
||||
ValueUpdateNotifier NONE = listener -> {};
|
||||
|
||||
/**
|
||||
* Sets up a listener with this notifier. Whenever the underlying value of
|
||||
* @param listener
|
||||
* Sets up a listener with this notifier.
|
||||
*/
|
||||
void setListener(Runnable listener);
|
||||
}
|
||||
Reference in new issue
Block a user