phoria2 1.4.0 → 1.4.1
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/README.md +6 -6
- package/dist/core.js +17 -0
- package/dist/core.js.map +1 -1
- package/dist/picking.js +2 -0
- package/package.json +1 -1
package/dist/picking.js
CHANGED
|
@@ -14,6 +14,7 @@ in vec3 vNormal;
|
|
|
14
14
|
in vec2 vUv;
|
|
15
15
|
in vec3 vColor;
|
|
16
16
|
#endif
|
|
17
|
+
//@hook uniforms
|
|
17
18
|
uniform uint uPickId;
|
|
18
19
|
layout(location = 0) out uvec4 pickOut;
|
|
19
20
|
${n}
|
|
@@ -27,6 +28,7 @@ clipAway(vWorldPosition);
|
|
|
27
28
|
vec4 base = vec4(vColor, 1.0);
|
|
28
29
|
vec3 emissive = vec3(0.0);
|
|
29
30
|
vec3 normal = normalize(vNormal);
|
|
31
|
+
//@hook fragment
|
|
30
32
|
if (base.a <= 0.0) discard;
|
|
31
33
|
}
|
|
32
34
|
#endif
|