Currently, I am experimenting with terrain generation code to generate water at a specific Y level and stone at another. This is just a preliminary model for my upcoming project on Minecraft terrain generation. However, I've encountered a problem where 2 meshes are not being placed as expected. Could it be that I'm overlooking something?
Below is the code snippet:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>My first three.js app</title>
<style>
body {
margin: 0;
}
</style>
</head>
<body>
<script type="module">
// JavaScript code goes here
</script>
</body>
</html>
I have been tinkering with the FOR loop in various ways, but adjusting the values doesn't seem to have any effect. It's puzzling for me as a newcomer to THREE JS and Javascript in general.