コード例 #1
0
            protected override void OnDraw(asd.RenderTexture2D dst, asd.RenderTexture2D src)
            {
                m_material2d.SetTexture2D("g_texture", src);
                m_material2d.SetVector3DF("g_values", new Vector3DF(640, 480, 200));

                DrawOnTexture2DWithMaterial(dst, m_material2d);
            }
コード例 #2
0
ファイル: GaugeObject.cs プロジェクト: GCLemon/AeroGroovers
        protected void Initialize(string path)
        {
            Texture2D GaugeTexture = Engine.Graphics.CreateTexture2D(path);

            GaugeMaterial.SetTexture2D("g_texture", GaugeTexture);
            GaugeMaterial.SetTextureFilterType("g_texture", TextureFilterType.Linear);
            GaugeMaterial.SetTextureWrapType("g_texture", TextureWrapType.Repeat);
        }