Opened 19 years ago
Last modified 17 years ago
#128 new defect
Bump Mapping
Reported by: | bensch | Owned by: | nobody |
---|---|---|---|
Priority: | minor | Milestone: | Old Orxonox tickets orx-v0 |
Component: | GraphicsEngine | Version: | |
Keywords: | Cc: | ||
Referenced By: | References: |
Description
Implement a BumpMap Texture Generator
Change History (2)
comment:1 Changed 19 years ago by bensch
comment:2 Changed 17 years ago by bknecht
- Milestone set to Old Orxonox tickets
Note: See
TracTickets for help on using
tickets.
#include <iostream.h> #include <stdlib.h> #include <math.h> #include "extgl.h" #include <GL/glut.h> #include "ltga.h"
#include <sys/stat.h> #include <sys/types.h>
int w, h; width and height of window int oldwinx, oldwiny; int mb[3] = {0, 0, 0}; mouse buttons
each material has 3 texture maps: rgb, normal map, height map uint texture[3][3]; int current_texture = 0;
int light_move = 1;
vertex and fragment programs uint vpid[3]; uint fpid[3];
char* readProgram(const char* name){
}
void setParameters(){
}
void initOpengl(){
}
void reshape(int width, int height){
}
void mouse(int button, int state, int winx, int winy){
}
int invertMatrix(float* mat, float* im){
}
void motion(int winx, int winy){
}
void keyboard(unsigned char key, int winx, int winy){
}
void drawGeometry(){
}
void drawText(char* text){
}
void display(){
}
int main(int argc, char argv){
}