mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-27 23:46:01 +00:00
Supernova Support
This commit is contained in:
1 parent
5ed26f3af7
commit
bccc5b00ca
24 files changed
+1634
-88
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package com.gtnewhorizons.angelica.api;
|
||||
|
||||
/**
|
||||
* Computes an RGB tint from block light and sky light channel values. The lightmap handles brightness; the tint only controls color.
|
||||
*/
|
||||
@FunctionalInterface
|
||||
public interface TintComputer {
|
||||
|
||||
/**
|
||||
* Blend block light RGB and sky light RGB into a tint color.
|
||||
*
|
||||
* @param br block light red (0-15)
|
||||
* @param bg block light green (0-15)
|
||||
* @param bb block light blue (0-15)
|
||||
* @param sr sky light red (0-15, already adjusted for sky subtraction)
|
||||
* @param sg sky light green (0-15)
|
||||
* @param sb sky light blue (0-15)
|
||||
* @param out float[3] output: R, G, B tint multipliers (typically 0-1)
|
||||
*/
|
||||
void computeTint(float br, float bg, float bb, float sr, float sg, float sb, float[] out);
|
||||
}
|
||||
Reference in new issue
Block a user