@pinkaphant/create-kolmo 0.3.2 → 0.3.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinkaphant/create-kolmo",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Scaffold a new @pinkaphant/kolmo + @khr3/core + @khr3/roads + @khr3/c12 3D physics game in one command",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"pack:dry": "npm pack --dry-run"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
|
-
"node": ">=
|
|
24
|
+
"node": ">=24"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
@@ -56,10 +56,12 @@ void main() {
|
|
|
56
56
|
if (n.y < 0.0) n = -n;
|
|
57
57
|
float lift = clamp((vWorld.y - uLevel) / max(uCrest, 0.05) * 0.5 + 0.5, 0.0, 1.0);
|
|
58
58
|
float diffuse = max(dot(n, uSun), 0.0);
|
|
59
|
-
|
|
60
|
-
float
|
|
61
|
-
col = mix(
|
|
62
|
-
|
|
59
|
+
float heightBand = floor(lift * 4.0) / 3.0;
|
|
60
|
+
float lightBand = floor(diffuse * 3.0) / 2.0;
|
|
61
|
+
vec3 col = mix(vec3(0.024, 0.184, 0.302), vec3(0.082, 0.592, 0.651), clamp(heightBand * 0.65 + lightBand * 0.25, 0.0, 1.0));
|
|
62
|
+
float foam = step(0.88, lift) * step(0.35, diffuse);
|
|
63
|
+
col = mix(col, vec3(0.949, 0.973, 0.984), foam);
|
|
64
|
+
gl_FragColor = vec4(col, 1.0);
|
|
63
65
|
#include <colorspace_fragment>
|
|
64
66
|
}
|
|
65
67
|
`;
|
|
@@ -83,7 +85,6 @@ function IslandSea() {
|
|
|
83
85
|
const mat = new THREE.ShaderMaterial({
|
|
84
86
|
vertexShader: SEA_VERT,
|
|
85
87
|
fragmentShader: SEA_FRAG,
|
|
86
|
-
transparent: true,
|
|
87
88
|
uniforms: {
|
|
88
89
|
uTime: { value: 0 },
|
|
89
90
|
uOrigin: { value: new THREE.Vector2(0, 0) },
|