@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.cjs
CHANGED
|
@@ -492,7 +492,7 @@ var DiamondShader = {
|
|
|
492
492
|
"// Reflect/Refract ray entering the diamond",
|
|
493
493
|
"const float n1 = 1.0;",
|
|
494
494
|
"const float epsilon = 1e-4;",
|
|
495
|
-
"float f0 = (
|
|
495
|
+
"float f0 = (n2- n1)/(n2 + n1);",
|
|
496
496
|
"f0 *= f0;",
|
|
497
497
|
"vec3 attenuationFactor = vec3(1.0);",
|
|
498
498
|
"vec3 newDirection = refract(direction, normal, n1/n2);",
|
|
@@ -570,6 +570,7 @@ var DiamondShader = {
|
|
|
570
570
|
"}"
|
|
571
571
|
].join("\n"),
|
|
572
572
|
uniforms: {
|
|
573
|
+
invModelMatrix: { value: new three.Matrix4() },
|
|
573
574
|
tCubeMapNormals: {
|
|
574
575
|
type: "t",
|
|
575
576
|
value: null
|