Results 1 to 2 of 2

Thread: Manual shadows of a cube

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2004

    Manual shadows of a cube

    Can someone give me some code on how to draw a shadow on the y=0 plane of a cube (above the y =0 plane).


  2. #2
    Senior Member Regular Contributor
    Join Date
    Jan 2004
    Los Angeles, CA, USA

    Re: Manual shadows of a cube

    I don't have code for it, but my understanding is that you can do simple shadows onto one surface in the same way you can do mirror reflections. That is, with a second render pass with a totally different projection matrix and for the case of shadows, different coloring.

Similar Threads

  1. Replies: 3
    Last Post: 12-03-2017, 10:43 AM
  2. Problem with point light shadows (cubemap shadows)
    By Ryno Engine in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 08-20-2015, 04:36 AM
  3. GLSL - cube shadows - projecting
    By donmof in forum OpenGL: GLSL
    Replies: 16
    Last Post: 04-05-2011, 01:26 AM
  4. Cube maps for shadows on NV40
    By Xelatihy in forum OpenGL: Advanced Coding
    Replies: 9
    Last Post: 03-07-2005, 08:57 PM
  5. Replies: 2
    Last Post: 08-17-2003, 01:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean