コード例 #1
0
        public override void Render(StringBuilder sb)
        {
            //<PointLight DEF='point' on='TRUE' intensity='0.9000' color='0.64 0.65 0.5' location='-1.4 0.47 0.75' radius='5.0000' >  </PointLight>

            TagName = LightType.ToString();
            AddProperty("direction", Vector3.ToString(Direction));
            AddProperty("location", Vector3.ToString(Location));
            AddProperty("intensity", Intensity.ToSlamString());
            AddProperty("shadowIntensity", ShadowIntensity.ToSlamString());
            AddProperty("color", Vector3.ToString(Color));
            AddProperty("radius", Radius.ToSlamString());
            AddProperty("range", Range.ToSlamString());

            base.Render(sb);
        }