mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-26 15:06:28 +01:00
3dc4cf0841
- Use struct to separate light and ao fields - Move light config TODO to impl - Fix formatting in InstancerProvider docs
12 lines
397 B
GLSL
12 lines
397 B
GLSL
struct FlwLightAo {
|
|
vec2 light;
|
|
float ao;
|
|
};
|
|
|
|
/// Get the light at the given world position.
|
|
/// This may be interpolated for smooth lighting.
|
|
bool flw_light(vec3 worldPos, vec3 normal, out FlwLightAo light);
|
|
|
|
/// Fetches the light value at the given block position.
|
|
/// Returns false if the light for the given block is not available.
|
|
bool flw_lightFetch(ivec3 blockPos, out vec2 light);
|