示例#1
0
        void Visit(ProjectSettings n)
        {
            // ambient light - 유니티에서는 프로젝트 설정이지만 three.js에서는 요소
            var ambientlight = new AmbientLightElem(n);
            var parent       = objNodeTable[GameObjectNode.RootInstanceId];

            parent.AddChild(ambientlight);
        }
        public void Visit(AmbientLightElem el)
        {
            using (var scope = new JsonScopeObjectWriter(writer)) {
                WriteCommonObjectNode(scope, el);

                var helper = new LightHelper(scope, el);
                helper.WriteColor();
            }
        }
示例#3
0
        void Visit(ProjectSettings n)
        {
            // ambient light - 유니티에서는 프로젝트 설정이지만 three.js에서는 요소
            // 하나로 보장되니까 그냥 넣어도 된다
            var ambientlight = new AmbientLightElem(n);

            ambientlight.Uuid = "unique-ambient-light";
            var parent = objNodeTable[GameObjectNode.RootInstanceId];

            parent.AddChild(ambientlight);
        }
        public AFrameNode Create(AmbientLightElem el)
        {
            var node = new AFrameNode("a-light");

            WriteCommonAFrameNode(el, node);
            node.AddAttribute("type", "ambient");

            var helper = new LightHelper(node, el);

            helper.WriteColor();
            return(node);
        }
示例#5
0
 public void Visit(AmbientLightElem el)
 {
     Node = factory.Create(el);
 }