Table of Contents

Class ColorUtil.LightUtil

Namespace
Vintagestory.API.MathTools
Assembly
VintagestoryAPI.dll

Converts HSV (extracted from light and lightSat) to RGBA

public class ColorUtil.LightUtil
Inheritance
ColorUtil.LightUtil
Inherited Members

Constructors

LightUtil(float[], float[], byte[], byte[])

public LightUtil(float[] blockLights, float[] sunLights, byte[] hues, byte[] sats)

Parameters

blockLights float[]
sunLights float[]
hues byte[]
sats byte[]

Methods

ToRgba(uint, int)

public int ToRgba(uint light, int lightSat)

Parameters

light uint
lightSat int

Returns

int