コード例 #1
0
        protected override void BindShader(DrawState state, bool maskOnly)
        {
            SimpleTextureEffect shader = state.GetShader <SimpleTextureEffect>();

            shader.Texture = _texture;
            shader.Bind(state);
        }
コード例 #2
0
ファイル: TestRendering.cs プロジェクト: nogu3ira/essence-udk
        private void Render(DrawState state)
        {
            SimpleTextureEffect shader = state.GetShader <SimpleTextureEffect>();

            state.PushCamera(camera);

            shader.Texture = _texture;
            shader.Bind(state);

            _vertices.Draw(state, null, PrimitiveType.TriangleStrip);

            state.PopCamera();
        }