lucastle6969 / comp371

repository for comp371 final project Fall 2017 Concordia
0 stars 0 forks source link

added uniform for tile color #14

Closed lucastle6969 closed 7 years ago

lucastle6969 commented 7 years ago

This is in lieu of height map for the floor, it shows how the tiles are moving, the shade of the tiles changes with location.

I send the tile world position to the fragment shader as an int and change the tile color . . so as pacman moves from 0 to 256 in the z direction, the green value (in R G B ) changes between 0 to 256 (R remains constant at 0.5 or 128 and Blue takes the x position