Skip to content

Commit

Permalink
Updated rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Tornado-Technology committed Jul 11, 2024
1 parent dba9f0a commit c3eff98
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Hypercube.Client/Graphics/Rendering/Renderer.Render.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ private void OnFrameRender(RenderFrameEvent args)
var colorG = new Color(0f, sin, 0f);
var colorB = new Color(0f, 0f, sin);

DrawTexture(_baseTexture, _baseTexture.Texture.QuadCrateTranslated(Vector2.Zero), new Box2(0.0f, 1.0f, 1.0f, 0.0f), Color.White);
//DrawTexture(_baseTexture, new Box2(0.0f, 1.0f, 1.0f, 0.0f), new Box2(0.0f, 1.0f, 1.0f, 0.0f), colorR);
//DrawTexture(_baseTexture, new Box2(-1.0f, 0.0f, 0.0f, -1.0f), new Box2(0.0f, 1.0f, 1.0f, 0.0f), colorG);
// DrawTexture(_baseTexture, new Box2(0.0f, 0.0f, 1.0f, -1.0f), new Box2(0.0f, 1.0f, 1.0f, 0.0f), colorB);
DrawTexture(_baseTexture, _baseTexture.Texture.QuadCrateTranslated(-Vector2.UnitY * 60f), new Box2(0.0f, 1.0f, 1.0f, 0.0f), Color.White);
DrawTexture(_baseTexture, _baseTexture.Texture.QuadCrateTranslated(Vector2.UnitX * 60f), new Box2(0.0f, 1.0f, 1.0f, 0.0f), colorR);
DrawTexture(_baseTexture, _baseTexture.Texture.QuadCrateTranslated(-Vector2.UnitX * 60f), new Box2(0.0f, 1.0f, 1.0f, 0.0f), colorG);
DrawTexture(_baseTexture, _baseTexture.Texture.QuadCrateTranslated(Vector2.UnitY * 60f), new Box2(0.0f, 1.0f, 1.0f, 0.0f), colorB);

BatchUpdate();

_baseShader.Use();
_baseShader.SetUniform("model", Matrix4X4.CreateScale(0.1f));
_baseShader.SetUniform("model", Matrix4X4.CreateScale(1f));
_baseShader.SetUniform("projection", _cameraManager.Projection);

_vao.Bind();
Expand Down

0 comments on commit c3eff98

Please sign in to comment.