Object specularLight
{
flags = { light = true; };
- light =
+ light =
{
multiplier = 1;
diffuse = white;
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;
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();
}
cube.Create(displaySystem);
return true;
}
-
+
void OnResize(int w, int h)
{
camera.Setup(w, h, null);
}
-
+
void OnRedraw(Surface surface)
{
int x, y;