mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 06:24:12 +01:00
b7c8604898
- Expose light in the shader api - flw_light - for builtin smooth lighting, faster than can be implemented by materials alone - flw_lightFetch - for materials that want to go crazy, access to raw data
8 lines
324 B
GLSL
8 lines
324 B
GLSL
/// Get the light at the given world position.
|
|
/// This may be interpolated for smooth lighting.
|
|
bool flw_light(vec3 worldPos, out vec2 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);
|