Пример #1
0
        private void Init(VFXExpressionMapper mapper)
        {
            m_UniformToName = new Dictionary <VFXExpression, List <string> >();
            m_TextureToName = new Dictionary <VFXExpression, List <string> >();

            foreach (var exp in mapper.expressions)
            {
                CollectAndAddUniforms(exp, mapper.GetData(exp).Select(d => d.fullName));
            }
        }
Пример #2
0
        private void Init(VFXExpressionMapper mapper)
        {
            m_UniformToName = new Dictionary <VFXExpression, List <string> >();
            m_TextureToName = new Dictionary <VFXExpression, List <string> >();

            var processedExp = new HashSet <VFXExpression>();

            foreach (var exp in mapper.expressions)
            {
                processedExp.Clear();
                var initialNames = mapper.GetData(exp).Select(d => d.fullName);
                CollectAndAddUniforms(exp, initialNames, processedExp);
            }
        }