MCPcopy Create free account
hub / github.com/achrefelouafi/GrassSystemThreeJS / update

Function update

src/grass.js:279–282  ·  view source on GitHub ↗
(cameraPos)

Source from the content-addressed store, hash-verified

277 geometry.instanceCount = Math.floor(maxCount * THREE.MathUtils.clamp(d, 0, 1));
278 },
279 update(cameraPos) {
280 uniforms.uCameraPos.value.copy(cameraPos);
281 uniforms.uSunDir.value.copy(sunLight.position).normalize();
282 },
283 };
284}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected