public CameraImpl() { this.m_u3dObj.name = "Camera"; this.m_cam = this.m_u3dObj.AddComponent <Camera>(); this.m_cam.tag = "MainCamera"; this.m_cam.clearFlags = CameraClearFlags.Skybox; this.m_cam.backgroundColor = new Color(0f, 0f, 0f); this.m_cam.depth = 10f; this.m_background = true; this.m_backColor = new Vec4(0f, 0f, 0f, 0f); }
public void SetMapFog(bool displayfog, float fogden, Vec4 fogcolor, string fogmode, float strdistance, float enddistance) { this.m_world.scene3d.env.displayfog = displayfog; if (displayfog) { this.m_world.scene3d.env.fogden = fogden; this.m_world.scene3d.env.fogcolor = fogcolor; this.m_world.scene3d.env.fogmode = fogmode; this.m_world.scene3d.env.strdistance = strdistance; this.m_world.scene3d.env.enddistance = enddistance; } }
public void apply(Material u3dMtrl) { bool flag = u3dMtrl == null; if (!flag) { foreach (string current in this.m_paraFloats.Keys) { u3dMtrl.SetFloat(current, this.m_paraFloats[current]); } foreach (string current2 in this.m_paraVecs.Keys) { Vec4 vec = this.m_paraVecs[current2]; u3dMtrl.SetVector(current2, new Vector4(vec.x, vec.y, vec.z, vec.w)); } } }
public Vec3(Vec4 src) { this.m_v[0] = src.x; this.m_v[1] = src.y; this.m_v[2] = src.z; }
public void SetAnimbent(Vec4 color) { this.m_world.scene3d.env.ambcolor = color; }
public float dot(Vec4 v) { return(this.m_v[0] * v.m_v[0] + this.m_v[1] * v.m_v[1] + this.m_v[2] * v.m_v[2] + this.m_v[3] * v.m_v[3]); }