private void CreateMetalSphereTestObject() { s = new Sphere(); s.SetModel("KWSphere"); s.SetPosition(-5, 1, -5); s.SetScale(2); s.IsShadowCaster = true; s.SetTexture(@".\textures\Metal022_1K_Color.jpg"); s.SetTexture(@".\textures\Metal022_1K_Normal.jpg", TextureType.Normal); //s.SetTexture(@".\textures\Metal022_1K_Metalness.jpg", TextureType.Metalness); //s.SetTexture(@".\textures\Metal022_1K_Roughness.jpg", TextureType.Roughness); AddGameObject(s); Cube c = new Cube(); c.SetModel("KWCube"); c.SetScale(1); c.IsShadowCaster = true; c.SetPosition(-2.5f, 0.5f, -2.5f); AddGameObject(c); CubeRoughnessTest floor = new CubeRoughnessTest(); floor.SetModel("KWCube"); floor.Name = "Test"; floor.SetPosition(-5, -0.5f, -5); floor.SetScale(10, 1, 10); floor.SetColor(1, 0, 0); floor.SetRoughness(0.6f); floor.SetTexture(@".\textures\MetalPlates006_1K_Normal.jpg", TextureType.Normal); floor.SetTextureRepeat(2, 2); floor.IsShadowCaster = true; //floor.SetSpecularReflectionEnabled(true); AddGameObject(floor); }
private void CreateTestScene() { PlayerSphere s = new PlayerSphere(); s.SetModel("KWSphere"); s.SetPosition(4, 1, 0); s.SetScale(2); //s.SetScale(2); s.Name = "Sphere #1"; s.IsShadowCaster = true; s.IsCollisionObject = true; //s.ColorEmissive = new Vector4(1, 1, 1, 0.1f); AddGameObject(s); /*Immovable ms = new Immovable(); * ms.SetModel("MS"); * ms.IsCollisionObject = true; * AddGameObject(ms);*/ Immovable sC = new Immovable(); sC.SetModel("KWSphere"); sC.SetPosition(-5, 1, 0); sC.SetScale(2); sC.Name = "Sphere #2"; sC.IsShadowCaster = true; sC.IsCollisionObject = true; sC.SetTexture(@".\textures\Metal022_1K_Color.jpg"); sC.SetTexture(@".\textures\Metal022_1K_Normal.jpg", TextureType.Normal); sC.SetTexture(@".\textures\Metal022_1K_Metalness.jpg", TextureType.Metalness); sC.SetTexture(@".\textures\Metal022_1K_Roughness.jpg", TextureType.Roughness); //AddGameObject(sC); CubeRoughnessTest floor = new CubeRoughnessTest(); floor.SetModel("KWCube"); floor.Name = "Floor"; floor.SetPosition(0, -0.5f, 0); floor.SetScale(10, 1, 10); floor.SetColor(1, 0, 0); floor.IsShadowCaster = true; floor.IsCollisionObject = true; //AddGameObject(floor); Immovable convexHull = new Immovable(); convexHull.SetModel("ConvexHull"); convexHull.SetScale(2); convexHull.SetPosition(0, 1, 0); convexHull.IsCollisionObject = true; convexHull.IsShadowCaster = true; AddGameObject(convexHull); DebugShowHitboxes = true; }