1. 24 Apr, 2021 12 commits
  2. 22 Apr, 2021 4 commits
  3. 16 Apr, 2021 4 commits
    • Rahul Sharma's avatar
      Merge branch 'implement-spotlight' into 'master' · c0b28269
      Rahul Sharma authored
      Implement a spotlight
      
      See merge request !28
      c0b28269
    • Rahul's avatar
      Implement a spotlight · 9b2d7487
      Rahul authored
      This adds a spotlight to the lighting shader, allowing it to be used
      as a type of light. This is the final light being implemented as
      part of the basic lights for this game. The next step will be to
      tidy up the shader to allow multiple light sources at a time.
      9b2d7487
    • Rahul Sharma's avatar
      Merge branch 'add-point-light' into 'master' · 890ef5cf
      Rahul Sharma authored
      Implement point light
      
      See merge request !27
      890ef5cf
    • Rahul's avatar
      Implement point light · fc1f7d6f
      Rahul authored
      This implements a simple point light. Currently this is added to the
      existing light source, but will soon be updated to allow it to support
      multiple lights (of different types)
      fc1f7d6f
  4. 14 Apr, 2021 4 commits
    • Rahul Sharma's avatar
      Merge branch 'add-directional-light-for-textured-objects' into 'master' · 6c6c2623
      Rahul Sharma authored
      Implement directional lighting for textured objects
      
      See merge request !26
      6c6c2623
    • Rahul's avatar
      Implement directional lighting for textured objects · 4efd7f36
      Rahul authored
      This was previously implemented only for the regular cube, but this
      change implements it in the Textured Cube shader too. As part of this
      the directional vector has been moved to the static Light class.
      
      To ensure all works as expected, this enables both the textured
      and non-textured cubes and implements the two types of lighting
      (different for each) to ensure it all works as expected.
      4efd7f36
    • Rahul Sharma's avatar
      Merge branch 'add-directional-light' into 'master' · c7c4c16b
      Rahul Sharma authored
      Implement directional light
      
      See merge request !25
      c7c4c16b
    • Rahul's avatar
      Implement directional light · fa787d3a
      Rahul authored
      This adds a directional light to the Cube object to allow a
      world space light source to be defined which makes all objects
      light up from a specific direction. Currently this is implemented
      as an optional (i.e. can choose position or direction), but will
      be implemented in a tidier way in the future.
      fa787d3a
  5. 11 Apr, 2021 4 commits
  6. 07 Apr, 2021 2 commits
  7. 27 Mar, 2021 2 commits
    • Rahul Sharma's avatar
      Merge branch 'rename-cube-to-pikachu' into 'master' · b75facf4
      Rahul Sharma authored
      Rename Cube class to Pikachu
      
      See merge request !20
      b75facf4
    • Rahul's avatar
      Rename Cube class to Pikachu · 0107d561
      Rahul authored
      When I originally made this Cube class my goal was to create a
      textured cube but this became impossible with my current setup
      and I needed to implement a cubemap instead. As this hasn't been
      achieved yet, I only drew a textured square of Pikachu. This
      commit simply renames the Cube class and all references to Pikachu
      to allow the Cube class to be used for drawing an actual cube.
      0107d561
  8. 24 Mar, 2021 2 commits
  9. 23 Mar, 2021 2 commits
    • Rahul Sharma's avatar
      Merge branch 'draw-textured-cube' into 'master' · 550eae15
      Rahul Sharma authored
      Draw a textured square
      
      See merge request !17
      550eae15
    • Rahul's avatar
      Draw a textured square · cb3bc568
      Rahul authored
      I originally set out to draw a textured cube but realised that
      isn't currently possible with the way the objects are drawn (will
      require use of a cube map). Instead this MR therefore implements
      a textured square, using stb_image to load the texture in a new
      Texture class, and then passing it to the shader and rendering it.
      cb3bc568
  10. 21 Mar, 2021 2 commits
  11. 20 Mar, 2021 2 commits