X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=samples%2F3D%2FColorSpheres%2FcolorSpheres.ec;h=5dde702d70363f2a17e1b7c7c6d70746802a6c68;hb=8ee80ec2b5c2317d48ff1ac4b3a886a5d1bed7aa;hp=caf514d0cb738473f9e6939e02eceeda4bdfaf1e;hpb=6bad27e666389fc889502c26e7474a361f0ed80c;p=sdk diff --git a/samples/3D/ColorSpheres/colorSpheres.ec b/samples/3D/ColorSpheres/colorSpheres.ec index caf514d..5dde702 100644 --- a/samples/3D/ColorSpheres/colorSpheres.ec +++ b/samples/3D/ColorSpheres/colorSpheres.ec @@ -37,7 +37,7 @@ Light diffuseLight Object specularLight { flags = { light = true; }; - light = + light = { multiplier = 1; diffuse = white; @@ -67,7 +67,7 @@ class ColorSpheres : Object object.transform.scaling = { scaling, scaling, scaling }; object.material = Material { - opacity = 1, + opacity = 1, diffuse = ColorRGB { (x + 1) / 2.0f, (y + 1) / 2.0f, (z + 1) / 2.0f }; ambient = ColorRGB { (x + 1) / 2.0f, (y + 1) / 2.0f, (z + 1) / 2.0f }; specular = white; @@ -113,13 +113,13 @@ class Test3D : Window pitch -= (double)diffTime / 3 * pitch; if(yaw < 0.0001) yaw = 0; if(pitch < 0.0001) pitch = 0; - + spin.yaw = yaw * signYaw; spin.pitch = pitch * signPitch; temp.Multiply(orientation, thisSpin); orientation.Normalize(temp); - + cube.transform.orientation = orientation; cube.UpdateTransform(); } @@ -133,12 +133,12 @@ class Test3D : Window cube.Create(displaySystem); return true; } - + void OnResize(int w, int h) { camera.Setup(w, h, null); } - + void OnRedraw(Surface surface) { int x, y;