playground:terrain
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| playground:terrain [2017/05/11 18:14] – falsam | playground:terrain [2023/03/15 15:49] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 17: | Ligne 17: | ||
| IncludeFile " | IncludeFile " | ||
| - | Global Camera, Light, Sky, Ground, GroundMat, Water, Box, Mesh, Material | + | Global Camera, Light, Sky, Ground, GroundTex, GroundMat, Water, Box, Mesh, Texture, Material |
| Global Box0, Box1, Box2 | Global Box0, Box1, Box2 | ||
| Ligne 32: | Ligne 32: | ||
| | | ||
| ;Camera & Light | ;Camera & Light | ||
| - | Camera = CreateCamera(" | + | Camera = CreateCamera(" |
| CameraBodySize(Camera, | CameraBodySize(Camera, | ||
| CameraLookAt(Camera, | CameraLookAt(Camera, | ||
| Ligne 40: | Ligne 40: | ||
| CameraMapKey(Camera, | CameraMapKey(Camera, | ||
| | | ||
| - | Light = CreateLight(" | + | Light = CreateLight(" |
| | | ||
| ;SkyBox | ;SkyBox | ||
| Ligne 47: | Ligne 47: | ||
| ;Terrain | ;Terrain | ||
| Ground = CreateTerrain(" | Ground = CreateTerrain(" | ||
| - | | + | |
| + | GroundMat = CreateMaterial(" | ||
| + | SetMaterialTexture(GroundMat, | ||
| ScaleMaterial(GroundMat, | ScaleMaterial(GroundMat, | ||
| - | | + | |
| - | SetMaterialColor(GroundMat, | + | SetMaterialColor(GroundMat, |
| MoveMesh(Ground, | MoveMesh(Ground, | ||
| | | ||
| ;Box | ;Box | ||
| - | Box0 = CreateBox(" | + | Box0 = CreateBox(" |
| - | | + | |
| - | | + | |
| + | SetMaterialTexture(Material, | ||
| + | SetMaterialColor(Material, | ||
| + | SetMeshMaterial(Box0, Material) | ||
| MoveMesh(Box0, | MoveMesh(Box0, | ||
| Box1 = CloneMesh(Box0) | Box1 = CloneMesh(Box0) | ||
| Ligne 80: | Ligne 85: | ||
| EndProcedure | EndProcedure | ||
| - | Procedure RenderGame() | + | Procedure RenderGame() |
| If KeyPushed(# | If KeyPushed(# | ||
| RotateCamera(Camera, | RotateCamera(Camera, | ||
playground/terrain.1494519247.txt.gz · Dernière modification : 2023/03/15 15:51 (modification externe)
