Esempio n. 1
0
        public override string GenerateSharedPixelShader(ShaderStage stage, int methodIndex, int optionIndex)
        {
            var gen      = new ContrailGenerator();
            var bytecode = gen.GenerateSharedPixelShader(stage, methodIndex, optionIndex).Bytecode;

            return(D3DCompiler.Disassemble(bytecode));
        }
Esempio n. 2
0
        public override string GenerateSharedVertexShader(VertexType vertex, ShaderStage stage)
        {
            var gen      = new ContrailGenerator();
            var bytecode = gen.GenerateSharedVertexShader(vertex, stage).Bytecode;

            return(D3DCompiler.Disassemble(bytecode));
        }
Esempio n. 3
0
        public override string GeneratePixelShader(ShaderStage stage, List <int> shaderOptions)
        {
            var albedo      = (Albedo)shaderOptions[0];
            var blend_mode  = (Blend_Mode)shaderOptions[1];
            var black_point = (Black_Point)shaderOptions[2];
            var fog         = (Fog)shaderOptions[3];

            var gen      = new ContrailGenerator(albedo, blend_mode, black_point, fog);
            var bytecode = gen.GeneratePixelShader(stage).Bytecode;

            return(D3DCompiler.Disassemble(bytecode));
        }