playground:light
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:light [2017/05/09 02:23] – falsam | playground:light [2023/03/15 15:49] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 9: | Ligne 9: | ||
| IncludeFile " | IncludeFile " | ||
| + | UseModule BJS | ||
| - | Global Scene, Camera, Light0, Light1, Light2, Ligh3, Mesh, Material | + | Global Scene, Camera, Light0, Light1, Light2, Ligh3, Mesh, Texture, Material |
| Declare LoadGame() | Declare LoadGame() | ||
| Ligne 20: | Ligne 21: | ||
| Scene = CreateScene() | Scene = CreateScene() | ||
| If Scene | If Scene | ||
| - | Camera = CreateCamera(" | + | Camera = CreateCamera(" |
| | | ||
| ;Lights | ;Lights | ||
| - | CreateLight(" | + | CreateLight(" |
| | | ||
| - | Light0 = CreateLight(" | + | Light0 = CreateLight(" |
| - | SpotLightRange(Light0, | + | SpotLightRange(Light0, |
| - | SetLightColor(Light0, | + | SetLightColor(Light0, |
| - | SetLightColor(Light0, | + | SetLightColor(Light0, |
| | | ||
| - | Light1 = CreateLight(" | + | Light1 = CreateLight(" |
| - | SpotLightRange(Light1, | + | SpotLightRange(Light1, |
| - | SetLightColor(Light1, | + | SetLightColor(Light1, |
| - | SetLightColor(Light1, | + | SetLightColor(Light1, |
| | | ||
| - | Light2 = CreateLight(" | + | Light2 = CreateLight(" |
| - | SpotLightRange(Light2, | + | SpotLightRange(Light2, |
| - | SetLightColor(Light2, | + | SetLightColor(Light2, |
| - | SetLightColor(Light2, | + | SetLightColor(Light2, |
| | | ||
| ;Ground & Box | ;Ground & Box | ||
| - | | + | |
| + | Material = CreateMaterial(" | ||
| + | SetMaterialTexture(Material, | ||
| Mesh = CreateGround(" | Mesh = CreateGround(" | ||
| - | | + | |
| ScaleMaterial(Material, | ScaleMaterial(Material, | ||
| | | ||
| - | | + | |
| - | Mesh = CreateBox(" | + | Material = CreateMaterial(" |
| - | | + | SetMaterialTexture(Material, |
| + | SetMaterialColor(Material, | ||
| + | Mesh = CreateBox(" | ||
| + | | ||
| MoveMesh(Mesh, | MoveMesh(Mesh, | ||
| | | ||
| Ligne 56: | Ligne 62: | ||
| Procedure RenderGame() | Procedure RenderGame() | ||
| - | Static z.f | ||
| - | |||
| RenderWorld() | RenderWorld() | ||
| EndProcedure | EndProcedure | ||
| </ | </ | ||
playground/light.1494289393.txt.gz · Dernière modification : 2023/03/15 15:51 (modification externe)
