Please provide html / javascript code for the following: You are required to draw the following scene using WebGL:

Please provide html / javascript code for the following:

You are required to draw the following scene using WebGL:

• The scene should represent the inside of a room, with the floor and two walls visible. The viewer should be looking into the corner formed by the two walls. The floor and the walls need to be different colours.

• A shape should be suspended in the room to the left of centre (i.e. not directly between the viewer and the white, left-hand wall). The shape should be a simple, flat, polygon (of any colour – but not black or white!).

• Make the shape rotate slowly on its own vertical axis.

Leave a Reply