@xort/cga 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.md +1 -43
- package/build/@xort_cga.js +556 -5718
- package/build/cga.d.ts +30 -27
- package/build/cga.esm.js +556 -5718
- package/dist/THIRD_PARTY_NOTICES.md +1 -43
- package/dist/index.cjs +556 -5718
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -27
- package/dist/index.d.ts +30 -27
- package/dist/index.js +556 -5718
- package/dist/index.js.map +1 -1
- package/dist/three.cjs +2 -1
- package/dist/three.cjs.map +1 -1
- package/dist/three.d.cts +3 -0
- package/dist/three.d.ts +3 -0
- package/dist/three.js +2 -1
- package/dist/three.js.map +1 -1
- package/package.json +121 -118
- package/readme.md +10 -4
package/dist/three.d.cts
CHANGED
package/dist/three.d.ts
CHANGED
package/dist/three.js
CHANGED
|
@@ -468,7 +468,7 @@ var DiamondShader = {
|
|
|
468
468
|
"// Reflect/Refract ray entering the diamond",
|
|
469
469
|
"const float n1 = 1.0;",
|
|
470
470
|
"const float epsilon = 1e-4;",
|
|
471
|
-
"float f0 = (
|
|
471
|
+
"float f0 = (n2- n1)/(n2 + n1);",
|
|
472
472
|
"f0 *= f0;",
|
|
473
473
|
"vec3 attenuationFactor = vec3(1.0);",
|
|
474
474
|
"vec3 newDirection = refract(direction, normal, n1/n2);",
|
|
@@ -546,6 +546,7 @@ var DiamondShader = {
|
|
|
546
546
|
"}"
|
|
547
547
|
].join("\n"),
|
|
548
548
|
uniforms: {
|
|
549
|
+
invModelMatrix: { value: new THREE.Matrix4() },
|
|
549
550
|
tCubeMapNormals: {
|
|
550
551
|
type: "t",
|
|
551
552
|
value: null
|