UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

2 lines 938 B
export const chunk_lpv_get_irradiance_at: "\nvec3 lpv_get_irradiance_at(in vec3 normal, in vec3 shCoefficients[9]) {\n // normal is assumed to have unit length\n float x = normal.x, y = normal.y, z = normal.z;\n\n // band 0\n vec3 result = shCoefficients[0] * 0.8862269254527579;\n\n // band 1\n result += shCoefficients[1] * 1.0233267079464885 * y;\n result += shCoefficients[2] * 1.0233267079464885 * z;\n result += shCoefficients[3] * 1.0233267079464885 * x;\n\n // band 2\n result += shCoefficients[4] * 0.8580855308097834 * x * y;\n result += shCoefficients[5] * 0.8580855308097834 * y * z;\n result += shCoefficients[6] * (0.7431238683011272 * z * z - 0.24770795610037571);\n result += shCoefficients[7] * 0.8580855308097834 * x * z;\n result += shCoefficients[8] * 0.4290427654048917 * (x * x - y * y);\n\n return result;\n}\n"; //# sourceMappingURL=chunk_lpv_get_irradiance_at.d.ts.map