public static List<ExportedValue> GetExportedValues(StitchedEffectSymbol stitchedEffect)
		{
			ExportDictionary exports = new ExportDictionary();
			List<ExportedValue> exportedValues = new List<ExportedValue>();
			foreach (StitchedFragmentSymbol stitchedFragment in stitchedEffect.StitchedFragments)
			{
				foreach (ShaderCodeBlockNode codeBlock in stitchedFragment.FragmentNode.VertexShaders)
					PreProcessCodeBlock(stitchedFragment.UniqueName, codeBlock, exports, exportedValues, true);
				foreach (ShaderCodeBlockNode codeBlock in stitchedFragment.FragmentNode.PixelShaders)
					PreProcessCodeBlock(stitchedFragment.UniqueName, codeBlock, exports, exportedValues, true);
			}
			return exportedValues;
		}
예제 #2
0
        public static List <ExportedValue> GetExportedValues(StitchedEffectSymbol stitchedEffect)
        {
            ExportDictionary     exports        = new ExportDictionary();
            List <ExportedValue> exportedValues = new List <ExportedValue>();

            foreach (StitchedFragmentSymbol stitchedFragment in stitchedEffect.StitchedFragments)
            {
                foreach (ShaderCodeBlockNode codeBlock in stitchedFragment.FragmentNode.VertexShaders)
                {
                    PreProcessCodeBlock(stitchedFragment.UniqueName, codeBlock, exports, exportedValues, true);
                }
                foreach (ShaderCodeBlockNode codeBlock in stitchedFragment.FragmentNode.PixelShaders)
                {
                    PreProcessCodeBlock(stitchedFragment.UniqueName, codeBlock, exports, exportedValues, true);
                }
            }
            return(exportedValues);
        }
예제 #3
0
 public BaseScriptProxy(EventHandlerDictionary eventHandlers, ExportDictionary exports, PlayerList players)
 {
     this.EventHandlers = eventHandlers;
     this.Exports       = exports;
     this.Players       = players;
 }