+
Skip to content

uraninite/Citrus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

citrus_logo11

Citrus

3D renderer using DirectX 11 - C++11! Citrus only working on Windows 7+ for now :)

To Do List

  • Shadow Mapping
  • Ambient Occlusion
  • Cube Mapping
  • Particle System
  • Planar Reflections
  • Global Illumination
  • Volumetric Lighting
  • PBR Support
  • Anti Aliasing (msaa, fxaa, taa)

Current Features

  • Phong Lighting
  • 3D Model Loader
  • Normal Map & Specular Map support
  • Spherical Skybox
  • Filters (blur, depth, fog)
  • GUI Support (Dear Imgui <3)
  • Input System

Inputs

As you can see in the diagram, input can be found on update function of app class. You can change the inputs to whatever you want just change the char characters on update function.

  if (keyboard.KeyIsPressed('W'))
	{
		//move forward when pressed W
		gfx.cam3D.AdjustPosition(gfx.cam3D.GetForwardVector() * cameraSpeed * deltaTime);
	}
  //You can change 'W' to 'Up Arrow' button
  if (keyboard.KeyIsPressed(VK_UP)) 
	{
		//move forward when pressed Up Arrow (VK_UP)
		gfx.cam3D.AdjustPosition(gfx.cam3D.GetForwardVector() * cameraSpeed * deltaTime);
        }

You can reach all virtual key codes on Win32 documentation.

Gallery

Lighting looking Debug Screenshot 2021 06 18 - 22 16 56 67

Wireframe looking Debug Screenshot 2021 06 18 - 22 20 13 65

Fog Shader looking Debug Screenshot 2021 06 18 - 22 21 18 96

About

3D Renderer using DirectX 11

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 85.1%
  • C 14.4%
  • HLSL 0.5%
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载